IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2011, 4:11:23 PM (15 years ago)
Author:
rhenders
Message:

Using new Fits class and Config class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/InitBatch.c

    r30147 r31011  
    1818    if (this->base.exitCode != PS_EXIT_SUCCESS) return this->base.exitCode;
    1919
    20     if (!ippToPspsConfig_populateFromFile(this->base.config, this->base.fitsOut))
     20    if (!this->base.config->populateFromFile(this->base.config, this->base.fitsOut))
    2121        this->base.exitCode = PS_EXIT_CONFIG_ERROR;
    2222    else this->base.exitCode = PS_EXIT_SUCCESS;
     
    3434
    3535/**
    36   Reads command-line arguments.  Calls base-calls print method first.
     36  Reads command-line arguments.
    3737  */
    3838static bool parseArguments(InitBatch* this, int argc, char **argv) {
    3939
    40     this->base.parseArguments(&this->base, argc, argv);
     40    this->base.parseArguments(&this->base, argc, argv, "/init", "00000000.FITS");
    4141
    4242    if (
     
    6868    }
    6969
     70    // method pointers
    7071    this->print = print;
    7172    this->destroy = destroy;
    7273    this->base.run = run;
    7374
    74     if (!parseArguments(this, *argc, argv)) { return this; }
    75 
    76     strcat(this->base.configsDir, "/init");
    77     sprintf(this->base.fitsOutFile, "00000000.FITS");
    78 
    79     this->base.init(&this->base);
     75    parseArguments(this, *argc, argv);
    8076
    8177    return this;
Note: See TracChangeset for help on using the changeset viewer.