IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/ippMonitor/scripts/generate

    r26888 r28794  
    3535    &init_key ("FIELDS");
    3636    &init_key ("GROUPS");
     37    &init_key ("TOPLOT");
     38    &init_key ("PLOTTER");
     39    &init_key ("PLOTTITLE");
    3740
    3841    foreach $line (@list) {
     
    4346        if ($key eq "TABLE") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
    4447        if ($key eq "TYPE")  { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     48        if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     49        if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     50        if ($key eq "PLOTTITLE") {
     51            ($value) = $value =~ m|^\s*(.+)\s*$|;
     52            $value =~ s/\s/_/g;
     53        }
    4554
    4655        &set_keypair ($key, $value);
     
    153162    }
    154163
     164    foreach $opword (@opwords) {
     165        &parse_opwords ($opword);
     166    }
     167
    155168    foreach $imagedef (@imagedefs) {
    156169        &parse_imagedef ($imagedef);
    157     }
    158 
    159     foreach $opword (@opwords) {
    160         &parse_opwords ($opword);
    161170    }
    162171
     
    253262# generate a table header cell (<th> </th>) for each field (show != none)
    254263sub write_table_header {
    255 
    256264    # print the table header (field labels)
    257265    print FILE "echo \"<tr><td></td>\\n\";\n";
     
    438446            next;
    439447        }
     448
    440449    }
    441450}
     
    617626    ($var, $name, $rule, $camera, $class) = split (" ", $value);
    618627    $name   = &parse_fieldname ($name);
     628    if (exists $ops{$name}) {
     629        #if OPx was defined, replace it by its value
     630        $name = $ops{$name};
     631        $name =~ s/\s+//g;
     632    }
    619633    $camera = &parse_fieldname ($camera);
    620634    $class  = &parse_fieldname ($class);
     
    682696        if ($key eq $key[$i]) {
    683697            if ($VERBOSE) { print "found $key: $key[$i]  -- $value[$i] (def: $default)\n"; }
    684             if (($default eq "") && ($value[$i] eq "")) { die "missing value for required key $key[$i]\n"; }
     698            if (($default eq "") && ($value[$i] eq "")) { die "check_key: missing value for required key $key[$i]\n"; }
    685699            if ($value[$i] eq "") { $value[$i] = $default; }
    686700            return;
     
    695709        if ($VERBOSE) { print "$key[$i]  -- $value[$i]\n"; }
    696710        if ($line =~ m|\$$key[$i]|) {
    697             if ($value[$i] eq "") { die "missing value for required key $key[$i]\n"; }
     711            if ($value[$i] eq "") { die "check_keypairs: missing value for required key $key[$i]\n"; }
    698712            $line =~ s|\$$key[$i]|$value[$i]|g;
    699713        }
     
    708722# against the expectation at runtime.  for the moment,
    709723# calculate by hand and add to def.d file
    710 
Note: See TracChangeset for help on using the changeset viewer.