- 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_processedexp.c
r18643 r18991 76 76 // det_id, exp_id, recip, -bg, -bg_stdev 77 77 // are required 78 PXOPT_LOOKUP_S TR(det_id, config->args, "-det_id", true, false);79 PXOPT_LOOKUP_S TR(exp_id, config->args, "-exp_id", true, false);78 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 79 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 80 80 81 81 // default values … … 126 126 // create a new detProcessedImfile object 127 127 detProcessedExpRow *detRow = detProcessedExpRowAlloc( 128 (psS64)atoll(det_id),129 (psS64)atoll(exp_id),128 det_id, 129 exp_id, 130 130 recipe, 131 131 bg, … … 141 141 user_5, 142 142 path_base, 143 "full", 143 144 code 144 145 ); … … 161 162 162 163 psMetadata *where = psMetadataAlloc(); 163 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");164 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");164 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 165 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 165 166 166 167 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 228 229 229 230 psMetadata *where = psMetadataAlloc(); 230 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");231 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");231 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 232 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 232 233 PXOPT_COPY_S16(config->args, where, "-code", "fault", "=="); 233 234 … … 260 261 } 261 262 263 bool updateprocessedexpMode(pxConfig *config) 264 { 265 PS_ASSERT_PTR_NON_NULL(config, NULL); 266 267 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 268 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 269 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 270 if (!setProcessedExpDataState(config, det_id, exp_id, data_state)) { 271 return false; 272 } 273 return true; 274 } 275 262 276 bool pendingcleanup_processedexpMode(pxConfig *config) 263 277 { 264 278 PS_ASSERT_PTR_NON_NULL(config, NULL); 265 279 266 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false);267 280 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 268 281 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 269 282 270 283 psMetadata *where = psMetadataAlloc(); 271 if (chip_id) { 272 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 273 } 274 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 284 PXOPT_COPY_S64(config->args, where, "-det_id", "detProcessedExp.det_id", "=="); 285 PXOPT_COPY_STR(config->args, where, "-label", "detProcessedExp.label", "=="); 275 286 276 287 psString query = pxDataGet("dettool_pendingcleanup_processedexp.sql"); … … 313 324 314 325 // negative simple so the default is true 315 if (!ippdbPrintMetadatas(stdout, output, "det PendingCleanup_processedexp", !simple)) {326 if (!ippdbPrintMetadatas(stdout, output, "detCleanupProcessedExp", !simple)) { 316 327 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 317 328 psFree(output); … … 324 335 } 325 336 326 337 // XXX SQL missing 327 338 bool donecleanup_processedexpMode(pxConfig *config) 328 339 { … … 374 385 375 386 // negative simple so the default is true 376 if (!ippdbPrintMetadatas(stdout, output, "detDoneCleanup _processedexp", !simple)) {387 if (!ippdbPrintMetadatas(stdout, output, "detDoneCleanupProcessedExp", !simple)) { 377 388 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 378 389 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
