IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2010, 3:30:28 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/scripts/generate

    r26888 r28601  
    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);
     
    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";
     
    682690        if ($key eq $key[$i]) {
    683691            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"; }
     692            if (($default eq "") && ($value[$i] eq "")) { die "check_key: missing value for required key $key[$i]\n"; }
    685693            if ($value[$i] eq "") { $value[$i] = $default; }
    686694            return;
     
    695703        if ($VERBOSE) { print "$key[$i]  -- $value[$i]\n"; }
    696704        if ($line =~ m|\$$key[$i]|) {
    697             if ($value[$i] eq "") { die "missing value for required key $key[$i]\n"; }
     705            if ($value[$i] eq "") { die "check_keypairs: missing value for required key $key[$i]\n"; }
    698706            $line =~ s|\$$key[$i]|$value[$i]|g;
    699707        }
     
    708716# against the expectation at runtime.  for the moment,
    709717# calculate by hand and add to def.d file
    710 
Note: See TracChangeset for help on using the changeset viewer.