IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15783


Ignore:
Timestamp:
Dec 10, 2007, 6:44:01 PM (18 years ago)
Author:
jhoblitt
Message:

add dettool_correction.c

Location:
trunk/ippTools/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/Makefile.am

    r15578 r15783  
    160160dettool_SOURCES = \
    161161    dettool.c \
    162     dettoolConfig.c
     162    dettoolConfig.c \
     163    dettool_correction.c
    163164
    164165detselect_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
  • trunk/ippTools/src/dettool.c

    r15328 r15783  
    128128        MODECASE(DETTOOL_MODE_DEFINEBYQUERY,    definebyqueryMode);
    129129        MODECASE(DETTOOL_MODE_DEFINEBYDETRUN,   definebydetrunMode);
     130        MODECASE(DETTOOL_MODE_MAKECORRECTION,   makecorrectionMode);
    130131        MODECASE(DETTOOL_MODE_RUNS,             runsMode);
    131132        MODECASE(DETTOOL_MODE_CHILDLESSRUN,     childlessrunMode);
  • trunk/ippTools/src/dettool.h

    r14269 r15783  
    2929    DETTOOL_MODE_DEFINEBYQUERY,
    3030    DETTOOL_MODE_DEFINEBYDETRUN,
     31    DETTOOL_MODE_MAKECORRECTION,
    3132    DETTOOL_MODE_RUNS,
    3233    DETTOOL_MODE_CHILDLESSRUN,
     
    7879pxConfig *dettoolConfig(pxConfig *config, int argc, char **argv);
    7980
     81bool makecorrectionMode(pxConfig *config);
     82
    8083#endif // DETTOOL_H
  • trunk/ippTools/src/dettoolConfig.c

    r14665 r15783  
    270270            "use the simple output format", false);
    271271
     272    // -makecorrection
     273    psMetadata *makecorrectionArgs = psMetadataAlloc();
     274    psMetadataAddStr(makecorrectionArgs, PS_LIST_TAIL, "-det_id",  0,
     275            "det ID to be corrected (required)", NULL);
     276
    272277    // -runs
    273278    psMetadata *runsArgs = psMetadataAlloc();
     
    10641069    PXTOOL_ADD_MODE("-definebyquery",   "", DETTOOL_MODE_DEFINEBYQUERY, definebyqueryArgs);
    10651070    PXTOOL_ADD_MODE("-definebydetrun",  "", DETTOOL_MODE_DEFINEBYDETRUN, definebydetrunArgs);
     1071    PXTOOL_ADD_MODE("-makecorrection",  "", DETTOOL_MODE_MAKECORRECTION, makecorrectionArgs);
    10661072    PXTOOL_ADD_MODE("-raw",             "", DETTOOL_MODE_RAW,           rawArgs);
    10671073    PXTOOL_ADD_MODE("-runs",            "", DETTOOL_MODE_RUNS,          runsArgs);
Note: See TracChangeset for help on using the changeset viewer.