Changeset 10042
- Timestamp:
- Nov 16, 2006, 6:45:47 PM (19 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pztool.c (modified) (1 diff)
-
pztoolConfig.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 -
trunk/ippTools/src/pztoolConfig.c
r10025 r10042 81 81 // -copydone 82 82 psMetadata *copydoneArgs = psMetadataAlloc(); 83 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-exp_tag", 0, 84 "define exposure ID", NULL); 83 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-exp_id", 0, 84 "define exposure ID", NULL); 85 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-inst", 0, 86 "define camera ID", NULL); 87 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-telescope", 0, 88 "define telescope ID", NULL); 85 89 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-class", 0, 86 90 "define class", NULL); 87 91 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-class_id", 0, 88 92 "define class_id", NULL); 89 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "- suri", 0,93 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-uri", 0, 90 94 "define storage uri", NULL); 91 95
Note:
See TracChangeset
for help on using the changeset viewer.
