Changeset 10042 for trunk/ippTools/src/pztool.c
- Timestamp:
- Nov 16, 2006, 6:45:47 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pztool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pztool.c
r10036 r10042 250 250 PS_ASSERT_PTR_NON_NULL(config, false); 251 251 252 bool status = false; 253 psString filesetid = psMetadataLookupStr(&status, config->args, "-filesetid"); 254 if (!status) { 255 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -filesetid"); 256 return false; 257 } 258 if (!filesetid) { 259 psError(PS_ERR_UNKNOWN, true, "-filesetid is required"); 260 return false; 261 } 262 263 psString camera = psMetadataLookupStr(&status, config->args, "-inst"); 264 if (!status) { 265 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -inst"); 266 return NULL; 267 } 268 if (!camera) { 269 psError(PS_ERR_UNKNOWN, true, "-inst is required"); 270 return NULL; 271 } 272 273 psString telescope = psMetadataLookupStr(&status, config->args, "-telescope"); 274 if (!status) { 275 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -telescope"); 276 return NULL; 277 } 278 if (!telescope) { 279 psError(PS_ERR_UNKNOWN, true, "-telescope is required"); 280 return NULL; 281 } 282 283 psString class = psMetadataLookupStr(&status, config->args, "-class"); 284 if (!status) { 285 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class"); 286 return NULL; 287 } 288 if (!class) { 289 psError(PS_ERR_UNKNOWN, true, "-class is required"); 290 return NULL; 291 } 292 293 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id"); 294 if (!status) { 295 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class_id"); 296 return NULL; 297 } 298 if (!class_id) { 299 psError(PS_ERR_UNKNOWN, true, "-class_id is required"); 300 return NULL; 301 } 302 303 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 304 if (!status) { 305 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -uri"); 306 return false; 307 } 308 if (!uri) { 309 psError(PS_ERR_UNKNOWN, true, "-uri is required"); 310 return false; 311 } 312 313 // need to know exp_id, camera, telescope, class, class_id (to find the 314 // pzPendingImfile entry and the URI for the newImfile entry. 315 252 316 #if 0 253 317 // we don't have to operate on complete frames here as it's ok to start
Note:
See TracChangeset
for help on using the changeset viewer.
