Changeset 9057 for trunk/ippTools/src/chiptool.c
- Timestamp:
- Sep 28, 2006, 5:25:54 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r8849 r9057 92 92 for (long j = 0; j < pendingFrames->n; j++) { 93 93 p2PendingFrame *pendingFrame = pendingFrames->data[j]; 94 if (strcmp(rawFrame->exposure->exp_ id,95 pendingFrame->exposure->exp_ id) == 0) {94 if (strcmp(rawFrame->exposure->exp_tag, 95 pendingFrame->exposure->exp_tag) == 0) { 96 96 psArrayRemove(rawFrames, rawFrame); 97 97 // dec the counter as the array just got shorter … … 111 111 for (long j = 0; j < pendingFrames->n; j++) { 112 112 p2DoneFrame *doneFrame = pendingFrames->data[j]; 113 if (strcmp(rawFrame->exposure->exp_ id,114 doneFrame->exposure->exp_ id) == 0) {113 if (strcmp(rawFrame->exposure->exp_tag, 114 doneFrame->exposure->exp_tag) == 0) { 115 115 psArrayRemove(rawFrames, rawFrame); 116 116 // dec the counter as the array just got shorter … … 178 178 // select * from p2ProcessedImfiles 179 179 // where 180 // exp_ id& class_id are not in p2PendingImfile180 // exp_tag & class_id are not in p2PendingImfile 181 181 182 182 // add the completed imfile to … … 193 193 " FROM p2PendingImfile " 194 194 " LEFT JOIN p2ProcessedImfile" 195 " USING(exp_ id, class_id)"195 " USING(exp_tag, class_id)" 196 196 " WHERE" 197 " p2ProcessedImfile.exp_ idIS NULL"197 " p2ProcessedImfile.exp_tag IS NULL" 198 198 " AND p2ProcessedImfile.class_id IS NULL" 199 199 ); … … 201 201 psMetadata *where = psMetadataAlloc(); 202 202 bool status = false; 203 psString exp_ id = psMetadataLookupStr(&status, config->args, "-exp_id"); if (!status) {204 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_ id");203 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); if (!status) { 204 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag"); 205 205 psFree(query); 206 206 return false; 207 207 } 208 if (exp_ id) {209 if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_ id", 0, "==", exp_id)) {210 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_ id");208 if (exp_tag) { 209 if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", exp_tag)) { 210 psError(PS_ERR_UNKNOWN, false, "failed to add item exp_tag"); 211 211 psFree(where); 212 212 psFree(query); … … 339 339 340 340 // select * from p2PendingExp 341 // where exp_ idis not in p2ProcessedExp342 // where exp_ idis not in p2PendingImfile341 // where exp_tag is not in p2ProcessedExp 342 // where exp_tag is not in p2PendingImfile 343 343 // where the number of entries in p2ProccessedImfile matches the .imfiles 344 344 // entry in rawScienceExp … … 350 350 " FROM p2PendingExp" 351 351 " JOIN rawScienceExp" 352 " ON p2PendingExp.exp_ id = rawScienceExp.exp_id"352 " ON p2PendingExp.exp_tag = rawScienceExp.exp_tag" 353 353 " LEFT JOIN p2ProcessedExp" 354 " ON p2PendingExp.exp_ id = p2ProcessedExp.exp_id"354 " ON p2PendingExp.exp_tag = p2ProcessedExp.exp_tag" 355 355 " LEFT JOIN p2PendingImfile" 356 " ON p2PendingExp.exp_ id = p2PendingImfile.exp_id"356 " ON p2PendingExp.exp_tag = p2PendingImfile.exp_tag" 357 357 " LEFT JOIN p2ProcessedImfile" 358 " ON p2PendingExp.exp_ id = p2ProcessedImfile.exp_id"358 " ON p2PendingExp.exp_tag = p2ProcessedImfile.exp_tag" 359 359 " WHERE" 360 " p2ProcessedExp.exp_ idIS NULL"361 " AND p2PendingImfile.exp_ idIS NULL"362 " AND p2ProcessedImfile.exp_ idIS NOT NULL"360 " p2ProcessedExp.exp_tag IS NULL" 361 " AND p2PendingImfile.exp_tag IS NULL" 362 " AND p2ProcessedImfile.exp_tag IS NOT NULL" 363 363 " GROUP BY" 364 " p2PendingExp.exp_ id"364 " p2PendingExp.exp_tag" 365 365 " HAVING rawScienceExp.imfiles = COUNT(p2ProcessedImfile.class_id)" 366 366 ); … … 514 514 515 515 return p2ProcessedImfileRowAlloc( 516 imfile->exp_ id,516 imfile->exp_tag, 517 517 imfile->class_id, 518 518 uri, … … 533 533 534 534 return p2ProcessedExpRowAlloc( 535 pendingExp->exp_ id,535 pendingExp->exp_tag, 536 536 pendingExp->p1_version, 537 537 pendingExp->p2_version … … 544 544 545 545 return p3PendingExpRowAlloc( 546 pendingExp->exp_ id,546 pendingExp->exp_tag, 547 547 pendingExp->p1_version, 548 548 pendingExp->p2_version
Note:
See TracChangeset
for help on using the changeset viewer.
