Changeset 31011 for trunk/ippToPsps/src/InitBatch.c
- Timestamp:
- Mar 22, 2011, 4:11:23 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/InitBatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/InitBatch.c
r30147 r31011 18 18 if (this->base.exitCode != PS_EXIT_SUCCESS) return this->base.exitCode; 19 19 20 if (! ippToPspsConfig_populateFromFile(this->base.config, this->base.fitsOut))20 if (!this->base.config->populateFromFile(this->base.config, this->base.fitsOut)) 21 21 this->base.exitCode = PS_EXIT_CONFIG_ERROR; 22 22 else this->base.exitCode = PS_EXIT_SUCCESS; … … 34 34 35 35 /** 36 Reads command-line arguments. Calls base-calls print method first.36 Reads command-line arguments. 37 37 */ 38 38 static bool parseArguments(InitBatch* this, int argc, char **argv) { 39 39 40 this->base.parseArguments(&this->base, argc, argv );40 this->base.parseArguments(&this->base, argc, argv, "/init", "00000000.FITS"); 41 41 42 42 if ( … … 68 68 } 69 69 70 // method pointers 70 71 this->print = print; 71 72 this->destroy = destroy; 72 73 this->base.run = run; 73 74 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); 80 76 81 77 return this;
Note:
See TracChangeset
for help on using the changeset viewer.
