Changeset 13562 for trunk/ppImage/src/ppImageDefineFile.c
- Timestamp:
- May 30, 2007, 3:24:59 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDefineFile.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDefineFile.c
r13531 r13562 5 5 # include "ppImage.h" 6 6 7 bool ppImageDefineFile (pmConfig *config, pmFPA *input, char *filerule, char *argname, pmFPAfileType type) {7 bool ppImageDefineFile (pmConfig *config, pmFPA *input, char *filerule, char *argname, pmFPAfileType fileType, pmDetrendType detrendType) { 8 8 9 9 bool status; … … 17 17 } 18 18 if (file) { 19 if (file->type != type) {20 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType ( type));19 if (file->type != fileType) { 20 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType)); 21 21 return false; 22 22 } … … 31 31 } 32 32 if (file) { 33 if (file->type != type) {34 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType ( type));33 if (file->type != fileType) { 34 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType)); 35 35 return false; 36 36 } … … 39 39 40 40 // look for the file to be loaded from the detrend database 41 pmFPAfileDefineFromDetDB (&status, config, filerule, input, type);41 file = pmFPAfileDefineFromDetDB (&status, config, filerule, input, detrendType); 42 42 if (!status) { 43 psError (PS_ERR_UNKNOWN, false, "failed to load fi nddefinition");43 psError (PS_ERR_UNKNOWN, false, "failed to load file definition"); 44 44 return false; 45 45 } 46 46 if (file) { 47 if (file->type != type) {48 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType ( type));47 if (file->type != fileType) { 48 psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType)); 49 49 return false; 50 50 }
Note:
See TracChangeset
for help on using the changeset viewer.
