Changeset 30204
- Timestamp:
- Jan 6, 2011, 10:37:24 AM (15 years ago)
- Location:
- tags/ipp-20101215/ippTools/src
- Files:
-
- 2 edited
-
regtool.c (modified) (9 diffs)
-
regtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippTools/src/regtool.c
r30183 r30204 343 343 psMetadata *row = output->data[i]; 344 344 345 bool status = false; 346 char *tmp_id = psMetadataLookupStr(&status,row,"tmp_class_id"); 347 if (!status) { 348 // fprintf (stderr, "incomplete on %s\n", psMetadataLookupStr(NULL,row,"exp_name")); 349 continue; 350 } 351 345 352 // Add the information about this row and the previous, if it exists. 346 353 // Write the class_id stuff for debugging. 347 this_class_id = psStringCopy(psMetadataLookupStr(NULL,row,"tmp_class_id")); 354 // this_class_id = psStringCopy(psMetadataLookupStr(NULL,row,"tmp_class_id")); 355 this_class_id = psStringCopy(tmp_id); 356 348 357 psStringSubstitute(&this_class_id,"XY","ota"); 349 358 psMetadataAddStr(row,PS_LIST_TAIL,"this_class_id",PS_META_REPLACE,"",this_class_id); 359 350 360 if (previous_class_id) { 351 361 psMetadataAddStr(row,PS_LIST_TAIL,"previous_class_id",PS_META_REPLACE,"",previous_class_id); … … 355 365 continue; 356 366 } 367 368 if (0 && !strcmp(this_class_id, "XY44")) { 369 printf("STAT 1: %s (%d %d) %d %d %d\n", 370 this_class_id, 371 ok_to_burn, already_burned, 372 psMetadataLookupS32(NULL,row,"burntool_state"), 373 psMetadataLookupS32(NULL,row,"is_registered"), 374 psMetadataLookupS32(NULL,row,"is_downloaded")); 375 } 376 357 377 // Determine if we've crossed a class_id boundary, as this resets the bits. 358 378 if (previous_class_id) { … … 361 381 already_burned = true; 362 382 previous_uri = NULL; 383 // fprintf (stderr, "crossed boundary: %s : %s to %s\n", psMetadataLookupStr(NULL,row,"exp_name"), previous_class_id, this_class_id); 363 384 } 364 385 } … … 395 416 ok_to_burn = false; 396 417 already_burned = false; 418 419 // fprintf (stderr, "missing uri: %s %s\n", psMetadataLookupStr(NULL,row,"exp_name"), this_class_id); 397 420 398 421 // Save this round for next round. … … 405 428 } 406 429 407 // printf("STATUS: %s %s %s %s (%d %d) %d %d %d\n",this_uri,previous_uri,this_class_id,previous_class_id,ok_to_burn,already_burned,psMetadataLookupS32(NULL,row,"burntool_state"),psMetadataLookupS32(NULL,row,"is_registered"),psMetadataLookupS32(NULL,row,"is_downloaded")); 408 430 if (0 && !strcmp(this_class_id, "XY44")) { 431 printf("STATUS: %s %s %s %s (%d %d) %d %d %d\n",this_uri,previous_uri,this_class_id,previous_class_id,ok_to_burn,already_burned,psMetadataLookupS32(NULL,row,"burntool_state"),psMetadataLookupS32(NULL,row,"is_registered"),psMetadataLookupS32(NULL,row,"is_downloaded")); 432 } 409 433 // If the state of this imfile is not "pending_burntool" then we can't burn it. 410 434 if (!ignore_state) { … … 413 437 if (!imfile_state) { // imfile state is NULL, so we probably aren't registered. 414 438 ok_to_burn = false; 439 440 // fprintf (stderr, "missing imfile_state: %s %s\n", psMetadataLookupStr(NULL,row,"exp_name"), this_class_id); 415 441 416 442 // Save this round for next round. … … 423 449 } 424 450 if (strcmp("pending_burntool",imfile_state) != 0) { // Probably the state is full, do not twiddle states 451 452 if (0 && strcmp(imfile_state, "full")) { 453 fprintf (stderr, "not pending nor full: %s %s %s\n", psMetadataLookupStr(NULL,row,"exp_name"), this_class_id, imfile_state); 454 } 455 425 456 // Save this round for next round. 426 457 psFree(previous_class_id); … … 620 651 bytes, 621 652 md5sum, 622 video_cells,623 0 // burntool_state653 0, // burntool_state 654 video_cells 624 655 )) { 625 656 psError(PS_ERR_UNKNOWN, false, "database error"); … … 773 804 psStringAppend(&query, " AND %s", whereClause); 774 805 psFree(whereClause); 775 } else {776 psFree(where);777 psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");778 return false;779 806 } 780 807 psFree(where); -
tags/ipp-20101215/ippTools/src/regtoolConfig.c
r30049 r30204 178 178 ADD_OPT(S64, revertprocessedimfileArgs, "-exp_id_begin", "search by exposure ID", 0); 179 179 ADD_OPT(S64, revertprocessedimfileArgs, "-exp_id_end", "search by exposure ID", 0); 180 ADD_OPT(U64, revertprocessedimfileArgs, "-limit", "limit result set to N items", 0); 180 181 181 182 // -updateprocessedimfile
Note:
See TracChangeset
for help on using the changeset viewer.
