Changeset 16170 for trunk/ippTools/src/pzgetexp.c
- Timestamp:
- Jan 20, 2008, 3:48:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetexp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetexp.c
r15091 r16170 69 69 PS_ASSERT_PTR_NON_NULL(config, NULL); 70 70 71 bool status = false; 72 psString camera = psMetadataLookupStr(&status, config->args, "-inst"); 73 if (!status) { 74 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -inst"); 75 return false; 76 } 77 if (!camera) { 78 psError(PS_ERR_UNKNOWN, true, "-inst is required"); 79 return false; 80 } 81 82 psString telescope = psMetadataLookupStr(&status, config->args, "-telescope"); 83 if (!status) { 84 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -telescope"); 85 return false; 86 } 87 if (!telescope) { 88 psError(PS_ERR_UNKNOWN, true, "-telescope is required"); 89 return false; 90 } 71 // required 72 PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false); 73 PXOPT_LOOKUP_STR(telescope, config->args, "-telescope", true, false); 74 PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false); 91 75 92 76 // find last fileset/exp_name (if we have one) … … 119 103 // invoke dsproductls 120 104 // dsproductls --uri <> --last_fileset <> 121 psString uri = psMetadataLookupStr(&status, config->args, "-uri");122 105 psString cmd = NULL; 123 106 if (haveLastFileSet) { … … 275 258 // these are constants for all records parsed -- look them up before we do 276 259 // any work 277 bool status = false; 278 char *camera = psMetadataLookupStr(&status, config->args, "-inst"); 279 if (!status) { 280 psError(PS_ERR_UNKNOWN, false, "failed to lookup item '-inst'"); 281 return NULL; 282 } 283 char *telescope = psMetadataLookupStr(&status, config->args, "-telescope"); 284 if (!status) { 285 psError(PS_ERR_UNKNOWN, false, "failed to lookup item '-telescope'"); 286 return NULL; 287 } 260 // required 261 PXOPT_LOOKUP_STR(camera, config->args, "-inst", true, false); 262 PXOPT_LOOKUP_STR(telescope, config->args, "-telescope", true, false); 288 263 289 264 // split the string into lines
Note:
See TracChangeset
for help on using the changeset viewer.
