IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2010, 2:50:34 PM (15 years ago)
Author:
rhenders
Message:

Some major refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/pspsSchema2xml.pl

    r29304 r30147  
    3030pod2usage(
    3131        -msg => "\n   Required options:\n\n".
    32         "--schema <path to PSPS schema>\n".
    33         "--type <init|det|diff|stack|object>\n".
     32        "- <path to PSPS schema>\n".
     33        "-t   <init|detection|diff|stack|object>\n".
    3434        -exitval => 3
    3535        ) unless
     
    3737defined $type;
    3838
    39 if ($type ne "init" && $type ne "det" && $type ne "diff" && $type ne "stack" && $type ne "object" ) {
     39if (
     40        $type ne "init" &&
     41        $type ne "detection" &&
     42        $type ne "diff" &&
     43        $type ne "stack" &&
     44        $type ne "object" ) {
    4045
    4146    print "Don't understand type '$type'\n";
     
    4348}
    4449
    45 my $enumsHeader = "ippToPsps".ucfirst($type)."Enums";
     50my $enumsHeader = ucfirst($type)."BatchEnums";
    4651open(OUT, ">".$enumsHeader.".h") or die("Error");
    4752
     
    6166
    6267if ($type eq "init") {createInit();}
    63 elsif ($type eq "det") {createDetections();}
     68elsif ($type eq "detection") {createDetections();}
    6469elsif ($type eq "diff") {createDiffs();}
    6570elsif ($type eq "stack") {createStacks();}
Note: See TracChangeset for help on using the changeset viewer.