Changeset 30729
- Timestamp:
- Feb 22, 2011, 11:51:02 AM (15 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 15 edited
-
addtool.c (modified) (1 diff)
-
bgtool.c (modified) (2 diffs)
-
camtool.c (modified) (1 diff)
-
chiptool.c (modified) (1 diff)
-
chiptoolConfig.c (modified) (1 diff)
-
diffphottool.c (modified) (1 diff)
-
difftool.c (modified) (1 diff)
-
difftoolConfig.c (modified) (1 diff)
-
faketool.c (modified) (1 diff)
-
pxtools.c (modified) (2 diffs)
-
pxtools.h (modified) (1 diff)
-
stacktool.c (modified) (1 diff)
-
staticskytool.c (modified) (1 diff)
-
warptool.c (modified) (1 diff)
-
warptoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r29423 r30729 324 324 // pxUpdateRun gets parameters from config->args and runs the update query 325 325 bool result = pxUpdateRun(config, where, &query, "addRun", "add_id", 326 "addProcessedExp", false );326 "addProcessedExp", false, false); 327 327 328 328 psFree(query); -
trunk/ippTools/src/bgtool.c
r29671 r30729 501 501 psString query = psStringCopy("UPDATE chipBackgroundRun"); 502 502 bool result = pxUpdateRun(config, where, &query, "chipBackgroundRun", "chip_bg_id", 503 "chipBackgroundImfile", true );503 "chipBackgroundImfile", true, true); 504 504 505 505 psFree(query); … … 1471 1471 psString query = psStringCopy("UPDATE warpBackgroundRun"); 1472 1472 bool result = pxUpdateRun(config, where, &query, "warpBackgroundRun", "warp_bg_id", 1473 "warpBackgroundSkyfile", true );1473 "warpBackgroundSkyfile", true, true); 1474 1474 1475 1475 psFree(query); -
trunk/ippTools/src/camtool.c
r29902 r30729 283 283 284 284 // pxUpdateRun gets parameters from config->args and updates 285 bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true );285 bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true, true); 286 286 if (!result) { 287 287 psError(psErrorCodeLast(), false, "pxUpdateRun failed"); -
trunk/ippTools/src/chiptool.c
r30544 r30729 443 443 444 444 // pxUpdateRun gets parameters from config->args and updates 445 bool result = pxUpdateRun(config, where, &query, "chipRun", "chip_id", "chipProcessedImfile", true );445 bool result = pxUpdateRun(config, where, &query, "chipRun", "chip_id", "chipProcessedImfile", true, true); 446 446 if (!result) { 447 447 psError(psErrorCodeLast(), false, "pxUpdateRun failed"); -
trunk/ippTools/src/chiptoolConfig.c
r30049 r30729 99 99 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_dist_group", 0, "set dist group", NULL); 100 100 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0, "set note", NULL); 101 pxmagicAddArguments(updaterunArgs); 101 102 102 103 // -setimfiletoupdate -
trunk/ippTools/src/diffphottool.c
r28488 r30729 228 228 229 229 // pxUpdateRun gets parameters from config->args and updates 230 bool result = pxUpdateRun(config, where, &query, "diffPhotRun", "diff_phot_id", "diffPhotSkyfile", true );230 bool result = pxUpdateRun(config, where, &query, "diffPhotRun", "diff_phot_id", "diffPhotSkyfile", true, false); 231 231 232 232 psFree(query); -
trunk/ippTools/src/difftool.c
r30594 r30729 224 224 225 225 // pxUpdateRun gets parameters from config->args and updates 226 bool result = pxUpdateRun(config, where, &query, "diffRun", "diff_id", "diffSkyfile", true );226 bool result = pxUpdateRun(config, where, &query, "diffRun", "diff_id", "diffSkyfile", true, true); 227 227 228 228 psFree(query); -
trunk/ippTools/src/difftoolConfig.c
r30070 r30729 73 73 psMetadataAddS16(updaterunArgs, PS_LIST_TAIL, "-set_diff_mode", 0, "specify type of difference (WW=1,WS=2,SW=3,SS=4)", 0); 74 74 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0, "define new note", NULL); 75 pxmagicAddArguments(updaterunArgs); 75 76 76 77 // -addinputskyfile -
trunk/ippTools/src/faketool.c
r27391 r30729 348 348 349 349 // pxUpdateRun gets parameters from config->args and updates 350 bool result = pxUpdateRun(config, where, &query, "fakeRun", "fake_id", "fakeProcessedImfile", true );350 bool result = pxUpdateRun(config, where, &query, "fakeRun", "fake_id", "fakeProcessedImfile", true, false); 351 351 if (!result) { 352 352 psError(psErrorCodeLast(), false, "pxUpdateRun failed"); -
trunk/ippTools/src/pxtools.c
r28486 r30729 278 278 279 279 // shared code for updating the various strings for a Run 280 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group )280 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group, bool has_magicked) 281 281 { 282 282 PS_ASSERT_PTR_NON_NULL(config, false); … … 360 360 if (fileWhere) { 361 361 psStringAppend(pQuery, "%s", fileWhere); 362 } 363 if (has_magicked) { 364 pxmagicAddWhere(config, pQuery, runTable); 362 365 } 363 366 -
trunk/ippTools/src/pxtools.h
r30544 r30729 84 84 bool pxGetOptions(FILE *stream, int argc, char **argv, pxConfig *config, psMetadata *modes, psMetadata *argSets); 85 85 86 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group );86 bool pxUpdateRun(pxConfig *config, psMetadata *where, psString *pQuery, psString runTable, psString idColumn, psString fileTable, bool has_dist_group, bool has_magicked); 87 87 88 88 #define PXOPT_ADD_MODE(option, comment, modeval, argset) \ -
trunk/ippTools/src/stacktool.c
r30429 r30729 750 750 751 751 // pxUpdateRun gets parameters from config->args and updates 752 bool result = pxUpdateRun(config, where, &query, "stackRun", "stack_id", "stackSumSkyfile", true );752 bool result = pxUpdateRun(config, where, &query, "stackRun", "stack_id", "stackSumSkyfile", true, false); 753 753 754 754 psFree(query); -
trunk/ippTools/src/staticskytool.c
r29066 r30729 360 360 361 361 // pxUpdateRun gets parameters from config->args and updates 362 bool result = pxUpdateRun(config, where, &query, "staticskyRun", "sky_id", "staticskyResult", true );362 bool result = pxUpdateRun(config, where, &query, "staticskyRun", "sky_id", "staticskyResult", true, false); 363 363 psFree(query); 364 364 psFree(where); -
trunk/ippTools/src/warptool.c
r30556 r30729 435 435 436 436 // pxUpdateRun gets parameters from config->args and updates 437 bool result = pxUpdateRun(config, where, &query, "warpRun", "warp_id", "warpSkyfile", true );437 bool result = pxUpdateRun(config, where, &query, "warpRun", "warp_id", "warpSkyfile", true, true); 438 438 439 439 psFree(query); -
trunk/ippTools/src/warptoolConfig.c
r29416 r30729 149 149 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_dist_group", 0, "define new dist_group", NULL); 150 150 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0, "define new note", NULL); 151 pxmagicAddArguments(updaterunArgs); 151 152 152 153 // -exp
Note:
See TracChangeset
for help on using the changeset viewer.
