Changeset 104
- Timestamp:
- 12/10/05 23:01:17 (18 years ago)
- 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 117 117 } 118 118 119 =head2 loglevel($level) 120 121 Return the text human readable log level associate to $level number 122 123 =cut 124 119 125 sub loglevel { 120 126 my $l = pop(@_); … … 154 160 $self->{config}->val($section, $var, $default); 155 161 } 162 163 =head2 config_mtime 164 165 Return the modification time of config file currently used 166 167 =cut 156 168 157 169 sub config_mtime { … … 239 251 } 240 252 253 =head2 match_data_type($datatype, $label) 254 255 Check if $label match the regexp associate to $datatype, return match values 256 or nothing if no match. 257 258 =cut 259 241 260 sub match_data_type { 242 261 my ($self, $datatype, $label) = @_; … … 249 268 } 250 269 270 =head2 find_match_data_type($label) 271 272 Check if $label match one of the regexp associate to datatype in the 273 configuration, if yes, return the datatype and assiociate values, else 274 return nothing 275 276 =cut 277 251 278 sub find_match_data_type { 252 279 my ($self, $label) = @_; … … 258 285 } 259 286 } 287 288 =head2 build_dest_filename($label, $datatype) 289 290 Build the destination file from original filename ($label) and optionnaly 291 from $datatype. Return the datatype and the filename. If no datatype apply, 292 return undef, if destination file cannot be build, return only the datatype. 293 294 If $datatype is not defined, the function try to find the right datatype from 295 configuration. 296 297 =cut 260 298 261 299 sub build_dest_filename {
Note: See TracChangeset
for help on using the changeset viewer.