- Timestamp:
- Aug 8, 2008, 5:08:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/dettool_stack.c
r18643 r18991 78 78 79 79 psMetadata *where = psMetadataAlloc(); 80 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");80 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 81 81 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 82 82 … … 123 123 124 124 // det_id, iteration, class_id, uri, & recipe are required 125 PXOPT_LOOKUP_S TR(det_id, config->args, "-det_id", true, false);125 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 126 126 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", true, false); 127 127 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); … … 175 175 // create a new detStackedImfile object 176 176 detStackedImfileRow *stackedImfile = detStackedImfileRowAlloc( 177 (psS64)atoll(det_id),177 det_id, 178 178 iteration, 179 179 class_id, … … 208 208 209 209 psMetadata *where = psMetadataAlloc(); 210 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");210 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 211 211 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 212 212 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); … … 282 282 283 283 psMetadata *where = psMetadataAlloc(); 284 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");284 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 285 285 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 286 286 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); … … 315 315 } 316 316 317 bool updatestackedMode(pxConfig *config) 318 { 319 PS_ASSERT_PTR_NON_NULL(config, NULL); 320 321 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 322 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", true, false); 323 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 324 325 if (!setStackedImfileDataState(config, det_id, iteration, data_state)) { 326 return false; 327 } 328 return true; 329 } 330 317 331 bool pendingcleanup_stackedMode(pxConfig *config) 318 332 { 319 333 PS_ASSERT_PTR_NON_NULL(config, NULL); 320 334 321 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false);322 335 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 323 336 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 324 337 325 338 psMetadata *where = psMetadataAlloc(); 326 if (chip_id) { 327 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 328 } 329 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 339 PXOPT_COPY_S64(config->args, where, "-det_id", "detStackedImfile.det_id", "=="); 340 PXOPT_COPY_S32(config->args, where, "-iteration", "detStackedImfile.iteration", "=="); 330 341 331 342 psString query = pxDataGet("dettool_pendingcleanup_stacked.sql"); … … 368 379 369 380 // negative simple so the default is true 370 if (!ippdbPrintMetadatas(stdout, output, "det PendingCleanup_stacked", !simple)) {381 if (!ippdbPrintMetadatas(stdout, output, "detCleanupStackedImfile", !simple)) { 371 382 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 372 383 psFree(output); … … 379 390 } 380 391 381 392 // XXX SQL missing 382 393 bool donecleanup_stackedMode(pxConfig *config) 383 394 {
Note:
See TracChangeset
for help on using the changeset viewer.
