Changeset 104


Ignore:
Timestamp:
12/10/05 23:01:17 (18 years ago)
Author:
thauvin
Message:
  • more documentation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData.pm

    • Property cvs2svn:cvs-rev changed from 1.33 to 1.34
    r103 r104  
    117117} 
    118118 
     119=head2 loglevel($level) 
     120 
     121Return the text human readable log level associate to $level number 
     122 
     123=cut 
     124 
    119125sub loglevel { 
    120126    my $l = pop(@_); 
     
    154160    $self->{config}->val($section, $var, $default); 
    155161} 
     162 
     163=head2 config_mtime 
     164 
     165Return the modification time of config file currently used 
     166 
     167=cut 
    156168 
    157169sub config_mtime { 
     
    239251} 
    240252 
     253=head2 match_data_type($datatype, $label) 
     254 
     255Check if $label match the regexp associate to $datatype, return match values 
     256or nothing if no match. 
     257 
     258=cut 
     259 
    241260sub match_data_type { 
    242261    my ($self, $datatype, $label) = @_; 
     
    249268} 
    250269 
     270=head2 find_match_data_type($label) 
     271 
     272Check if $label match one of the regexp associate to datatype in the 
     273configuration, if yes, return the datatype and assiociate values, else 
     274return nothing 
     275 
     276=cut 
     277 
    251278sub find_match_data_type { 
    252279    my ($self, $label) = @_; 
     
    258285    } 
    259286} 
     287 
     288=head2 build_dest_filename($label, $datatype) 
     289 
     290Build the destination file from original filename ($label) and optionnaly 
     291from $datatype. Return the datatype and the filename. If no datatype apply, 
     292return undef, if destination file cannot be build, return only the datatype. 
     293 
     294If $datatype is not defined, the function try to find the right datatype from 
     295configuration. 
     296 
     297=cut 
    260298 
    261299sub build_dest_filename { 
Note: See TracChangeset for help on using the changeset viewer.