Changeset 138


Ignore:
Timestamp:
12/13/05 21:52:21 (18 years ago)
Author:
thauvin
Message:
  • transform comment to pod doc
File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.46 to 1.47
    r128 r138  
    1818=head2 ObsData::Repository 
    1919 
    20 =head3 new 
     20=head3 new($parent, %param) 
    2121 
    2222Create a new ObsData::Repository object 
    2323 
     24=over 4 
     25 
     26=item $parent 
     27 
     28A ObsData::Repository to take information 
     29 
     30=item %param 
     31 
     32A list of paramter to set in new object: 
     33 
     34=over 4 
     35 
     36=item datatype  
     37 
     38If set, only this datatype will be checked 
     39 
     40=item obs 
     41 
     42The obsveratory where data come from, informationnal only 
     43 
     44=item dir 
     45 
     46The based directory where archive are located 
     47 
     48=item glob 
     49 
     50Apply this glob to search files in dir 
     51 
     52=item statusfile 
     53 
     54The file where status info should be written 
     55 
     56=item status 
     57 
     58The Config::IniFiles object 
     59 
     60=back 
     61 
     62=back 
     63 
    2464=cut 
    2565 
    2666sub new { 
    27     my ($class, $infos, %param) = @_; 
    28  
    29     my $or = { %$infos }; 
     67    my ($class, $parent, %param) = @_; 
     68 
     69    my $or = { %$parent }; 
    3070    foreach (keys %param) { 
    3171        $or->{$_} = $param{$_}; 
    3272    } 
    3373     
    34     # $infos-> 
    35     # obsdata ObsData object 
    3674    $or->{obsdata} or die "Error #1de8d015, please insult programmer"; 
    37     # datatype search directly fot it 
    38     # obs station, informationnal only 
    39     # statusfile 
    40     # status Config::IniFile object to store extraction info 
    41     # dir based directory where archive are located 
    4275    $or->{dir} or die "No dir given"; 
    4376    -d $or->{dir} or return undef; 
    44     # patern glob() over file 
    4577     
    4678    $or->{status} ||= new Config::IniFiles( 
Note: See TracChangeset for help on using the changeset viewer.