Changeset 23873 for trunk/ippTools/src/camtool.c
- Timestamp:
- Apr 15, 2009, 9:33:58 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r23830 r23873 109 109 psMetadata *where = psMetadataAlloc(); 110 110 pxcamGetSearchArgs (config, where); 111 PXOPT_COPY_STR(config->args, where, "-label", "c hipRun.label", "==");112 PXOPT_COPY_STR(config->args, where, "-reduction", "c hipRun.reduction", "==");111 PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "=="); 112 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 113 113 114 114 if (!psListLength(where->list) && … … 196 196 } 197 197 198 // loop over our list of c hipRun rows198 // loop over our list of camRun rows 199 199 for (long i = 0; i < psArrayLength(output); i++) { 200 200 psMetadata *md = output->data[i]; 201 201 202 c hipRunRow *row = chipRunObjectFromMetadata(md);202 camRunRow *row = camRunObjectFromMetadata(md); 203 203 if (!row) { 204 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into c hipRun");204 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into camRun"); 205 205 psFree(output); 206 206 return false; … … 268 268 269 269 if (state) { 270 // set c hipRun.state to state270 // set camRun.state to state 271 271 if (!pxcamRunSetStateByQuery(config, where, state)) { 272 272 psFree(where); … … 276 276 277 277 if (label) { 278 // set c hipRun.label to label278 // set camRun.label to label 279 279 if (!pxcamRunSetLabelByQuery(config, where, label)) { 280 280 psFree(where); … … 362 362 PXOPT_COPY_STR(config->args, where, "-label", "camRun.label", "=="); 363 363 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 364 PXOPT_COPY_S64(config->args, where, "-chip_id", "c hipRun.chip_id", "==");365 PXOPT_COPY_STR(config->args, where, "-class_id", "c hipProcessedImfile.class_id", "==");364 PXOPT_COPY_S64(config->args, where, "-chip_id", "camRun.chip_id", "=="); 365 PXOPT_COPY_STR(config->args, where, "-class_id", "camProcessedExp.class_id", "=="); 366 366 367 367 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 400 400 401 401 // negate simple so the default is true 402 if (!ippdbPrintMetadatas(stdout, output, "c hipProcessedImfile", !simple)) {402 if (!ippdbPrintMetadatas(stdout, output, "camProcessedExp", !simple)) { 403 403 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 404 404 psFree(output); … … 1145 1145 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 1146 1146 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1147 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 1147 1148 1148 1149 FILE *f = fopen (outfile, "w"); … … 1193 1194 } 1194 1195 if (!psArrayLength(output)) { 1195 ps Trace("regtool", PS_LOG_INFO, "no rows found");1196 psError(PS_ERR_UNKNOWN, true, "no rows found"); 1196 1197 psFree(output); 1197 return true; 1198 return false; 1199 } 1200 1201 if (clean) { 1202 if (!strcmp(tables[i].tableName, "camRun")) { 1203 if (!pxSetStateCleaned("camRun", "state", output)) { 1204 psFree(output); 1205 psError(PS_ERR_UNKNOWN, false, "pxSetStateClean failed for table %s", tables[i].tableName); 1206 return false; 1207 } 1208 } 1198 1209 } 1199 1210
Note:
See TracChangeset
for help on using the changeset viewer.
