- 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_normalizedstat.c
r18643 r18991 75 75 76 76 // required 77 PXOPT_LOOKUP_S TR(det_id, config->args, "-det_id", true, false);77 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 78 78 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); 79 79 … … 86 86 87 87 if (!detNormalizedStatImfileInsert(config->dbh, 88 (psS64)atoll(det_id),88 det_id, 89 89 iteration, 90 90 class_id, … … 105 105 106 106 psMetadata *where = psMetadataAlloc(); 107 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");107 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 108 108 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 109 109 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); … … 176 176 177 177 psMetadata *where = psMetadataAlloc(); 178 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");178 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 179 179 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 180 180 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); … … 209 209 } 210 210 211 bool updatenormalizedstatMode(pxConfig *config) 212 { 213 PS_ASSERT_PTR_NON_NULL(config, NULL); 214 215 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 216 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", true, false); 217 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); 218 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 219 220 if (!setNormStatImfileDataState(config, det_id, iteration, class_id, data_state)) { 221 return false; 222 } 223 return true; 224 } 225 211 226 bool pendingcleanup_normalizedstatMode(pxConfig *config) 212 227 { 213 228 PS_ASSERT_PTR_NON_NULL(config, NULL); 214 229 215 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false);216 230 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 217 231 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 218 232 219 233 psMetadata *where = psMetadataAlloc(); 220 if (chip_id) { 221 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 222 } 223 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 234 PXOPT_COPY_S64(config->args, where, "-det_id", "detNormalizedStatImfile.det_id", "=="); 235 PXOPT_COPY_S32(config->args, where, "-iteration", "detNormalizedStatImfile.iteration", "=="); 236 PXOPT_COPY_STR(config->args, where, "-class_id", "detNormalizedStatImfile.det_id", "=="); 224 237 225 238 psString query = pxDataGet("dettool_pendingcleanup_normalizedstat.sql"); … … 262 275 263 276 // negative simple so the default is true 264 if (!ippdbPrintMetadatas(stdout, output, "det PendingCleanup_normalizedstat", !simple)) {277 if (!ippdbPrintMetadatas(stdout, output, "detCleanupNormStatImfile", !simple)) { 265 278 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 266 279 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
