Changeset 30907
- Timestamp:
- Mar 15, 2011, 9:06:58 AM (15 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 15 edited
-
addtool.c (modified) (1 diff)
-
camtool.c (modified) (2 diffs)
-
camtoolConfig.c (modified) (1 diff)
-
chiptool.c (modified) (1 diff)
-
chiptoolConfig.c (modified) (1 diff)
-
difftool.c (modified) (2 diffs)
-
difftoolConfig.c (modified) (1 diff)
-
faketool.c (modified) (1 diff)
-
pxfault.c (modified) (2 diffs)
-
pxtools.h (modified) (1 diff)
-
pztool.c (modified) (1 diff)
-
regtool.c (modified) (2 diffs)
-
stacktool.c (modified) (1 diff)
-
stacktoolConfig.c (modified) (1 diff)
-
staticskytool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r30729 r30907 684 684 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 685 685 686 if (!pxSetFaultCode(config->dbh, "addProcessedExp", where, fault )) {686 if (!pxSetFaultCode(config->dbh, "addProcessedExp", where, fault, 0)) { 687 687 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 688 688 psFree (where); -
trunk/ippTools/src/camtool.c
r30729 r30907 983 983 984 984 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 985 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 985 986 986 987 psMetadata *where = psMetadataAlloc(); … … 990 991 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 991 992 992 if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, fault )) {993 if (!pxSetFaultCode(config->dbh, "camProcessedExp", where, fault, quality)) { 993 994 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 994 995 psFree (where); -
trunk/ippTools/src/camtoolConfig.c
r30805 r30907 244 244 psMetadataAddStr(updateprocessedexpArgs, PS_LIST_TAIL, "-class_id", 0, "search by class ID", NULL); 245 245 psMetadataAddS16(updateprocessedexpArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", INT16_MAX); 246 psMetadataAddS16(updateprocessedexpArgs, PS_LIST_TAIL, "-set_quality", 0, "set quality", 0); 246 247 247 248 // -block -
trunk/ippTools/src/chiptool.c
r30729 r30907 963 963 if (!state) { 964 964 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 965 966 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault)) { 965 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 966 967 if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, fault, quality)) { 967 968 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 968 969 return false; -
trunk/ippTools/src/chiptoolConfig.c
r30729 r30907 235 235 psMetadataAddS16(updateprocessedimfileArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0); 236 236 psMetadataAddStr(updateprocessedimfileArgs, PS_LIST_TAIL, "-set_state", 0, "set state", NULL); 237 237 psMetadataAddS16(updateprocessedimfileArgs, PS_LIST_TAIL, "-set_quality", 0, "set quality", 0); 238 238 // -processedExp 239 239 psMetadata *listrunArgs = psMetadataAlloc(); -
trunk/ippTools/src/difftool.c
r30729 r30907 2681 2681 2682 2682 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 2683 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 2683 2684 2684 2685 psMetadata *where = psMetadataAlloc(); … … 2686 2687 PXOPT_COPY_STR(config->args, where, "-skycell_id", "skycell_id", "=="); 2687 2688 2688 if (!pxSetFaultCode(config->dbh, "diffSkyfile", where, fault )) {2689 if (!pxSetFaultCode(config->dbh, "diffSkyfile", where, fault, quality)) { 2689 2690 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 2690 2691 psFree (where); -
trunk/ippTools/src/difftoolConfig.c
r30729 r30907 411 411 psMetadata *updatediffskyfileArgs = psMetadataAlloc(); 412 412 psMetadataAddS64(updatediffskyfileArgs, PS_LIST_TAIL, "-diff_id", 0, "define diff ID (required)", 0); 413 psMetadataAddStr(updatediffskyfileArgs, PS_LIST_TAIL, "-skycell_id", 0, "search by skycell ID", NULL); 413 414 psMetadataAddS16(updatediffskyfileArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0); 414 psMetadataAddS tr(updatediffskyfileArgs, PS_LIST_TAIL, "-skycell_id", 0, "search by skycell ID", NULL);415 psMetadataAddS16(updatediffskyfileArgs, PS_LIST_TAIL, "-set_quality", 0, "set quality", 0); 415 416 416 417 // -tocleanedskyfile -
trunk/ippTools/src/faketool.c
r30729 r30907 706 706 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 707 707 708 if (!pxSetFaultCode(config->dbh, "fakeProcessedImfile", where, fault )) {708 if (!pxSetFaultCode(config->dbh, "fakeProcessedImfile", where, fault, 0)) { 709 709 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 710 710 psFree(where); -
trunk/ippTools/src/pxfault.c
r13580 r30907 26 26 #include "pxtools.h" 27 27 28 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code )28 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code, psS16 quality) 29 29 { 30 30 PS_ASSERT_PTR_NON_NULL(dbh, false); … … 48 48 return false; 49 49 } 50 if (quality) { 51 if (!psMetadataAddS16(values, PS_LIST_HEAD, "quality", 0, NULL, quality)) { 52 psError(PS_ERR_UNKNOWN, false, "failed to add metadata item quality"); 53 psFree(values); 54 return false; 55 } 56 } 50 57 51 58 long rowsAffected = psDBUpdateRows(dbh, tableName, where, values); -
trunk/ippTools/src/pxtools.h
r30729 r30907 75 75 bool pxAddLabelSearchArgs (pxConfig *config, psMetadata *where, char *field, char *name, char *op); 76 76 77 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code );77 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code, psS16 quality); 78 78 bool pxExportVersion(pxConfig *config, FILE *f); 79 79 bool pxCheckImportVersion(pxConfig *config, psMetadata *md); -
trunk/ippTools/src/pztool.c
r30437 r30907 798 798 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 799 799 800 if (!pxSetFaultCode(config->dbh, "pzDownloadImfile", where, fault )) {800 if (!pxSetFaultCode(config->dbh, "pzDownloadImfile", where, fault, 0)) { 801 801 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 802 802 psFree (where); -
trunk/ippTools/src/regtool.c
r30652 r30907 894 894 if (fault != INT16_MAX) { 895 895 // this is fairly dangerous : can set all if the where is not set... 896 if (!pxSetFaultCode(config->dbh, "rawImfile", where, fault )) {896 if (!pxSetFaultCode(config->dbh, "rawImfile", where, fault, 0)) { 897 897 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 898 898 psFree (where); … … 1608 1608 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 1609 1609 1610 if (!pxSetFaultCode(config->dbh, "rawExp", where, fault )) {1610 if (!pxSetFaultCode(config->dbh, "rawExp", where, fault, 0)) { 1611 1611 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 1612 1612 psFree(where); -
trunk/ippTools/src/stacktool.c
r30729 r30907 1660 1660 1661 1661 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 1662 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 1662 1663 1663 1664 psMetadata *where = psMetadataAlloc(); 1664 1665 PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id", "=="); 1665 1666 1666 if (!pxSetFaultCode(config->dbh, "stackSumSkyfile", where, fault )) {1667 if (!pxSetFaultCode(config->dbh, "stackSumSkyfile", where, fault, quality)) { 1667 1668 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 1668 1669 psFree (where); -
trunk/ippTools/src/stacktoolConfig.c
r29299 r30907 266 266 psMetadataAddS64(updatesumskyfileArgs, PS_LIST_TAIL, "-stack_id", 0, "define stack ID (required)", 0); 267 267 psMetadataAddS16(updatesumskyfileArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0); 268 psMetadataAddS16(updatesumskyfileArgs, PS_LIST_TAIL, "-set_quality", 0, "set quality", 0); 268 269 269 270 // -exportrun -
trunk/ippTools/src/staticskytool.c
r30729 r30907 716 716 PXOPT_COPY_S64(config->args, where, "-sky_id", "sky_id", "=="); 717 717 718 if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault )) {718 if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, 0)) { 719 719 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 720 720 psFree (where);
Note:
See TracChangeset
for help on using the changeset viewer.
