IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2006, 6:10:08 PM (20 years ago)
Author:
jhoblitt
Message:

stub out -rerun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r7422 r7423  
    1717static bool addstacMode(pxConfig *config);
    1818static bool stacMode(pxConfig *config);
    19 static psArray *validDetInputClassIds(pxConfig *config, const char *det_id);
    20 static psArray *searchInputImfiles(pxConfig *config, const char *det_id);
    2119static bool stacframeMode(pxConfig *config);
    2220static bool addnormalizedMode(pxConfig *config);
     
    3028static bool masterframeMode(pxConfig *config);
    3129static bool masterMode(pxConfig *config);
    32 
     30static bool rerunMode(pxConfig *config);
     31
     32static psArray *validDetInputClassIds(pxConfig *config, const char *det_id);
     33static psArray *searchInputImfiles(pxConfig *config, const char *det_id);
    3334static detInputExpRow *rawDetrenTodetInputExpRow(rawDetrendExpRow *rawExp, psS32 det_id, psS32 iteration);
    3435static psArray *searchRawImfiles(pxConfig *config, psMetadata *where);
     
    6566        MODECASE(DETTOOL_MODE_MASTERFRAME, masterframeMode);
    6667        MODECASE(DETTOOL_MODE_MASTER, masterMode);
     68        MODECASE(DETTOOL_MODE_RERUN, rerunMode);
    6769        default:
    6870            psAbort(argv[0], "invalid option (this should not happen)");
     
    17721774    return true;
    17731775}
     1776
     1777
     1778static bool rerunMode(pxConfig *config)
     1779{
     1780    PS_ASSERT_PTR_NON_NULL(config, false);
     1781 
     1782    // det_id is required
     1783    bool status = false;
     1784    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     1785    if (!status) {
     1786        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");
     1787        return false;
     1788    }
     1789    if (!det_id) {
     1790        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1791        return false;
     1792    }
     1793
     1794    return true;
     1795}
Note: See TracChangeset for help on using the changeset viewer.