IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 10, 2007, 6:42:52 PM (19 years ago)
Author:
jhoblitt
Message:

add p3tool -faultexp & -pendingexp -faulted & -pendingexp -limit

File:
1 edited

Legend:

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

    r10440 r11024  
    4949    psMetadataAddS32(pendingexpArgs, PS_LIST_TAIL, "-p3_version", 0,
    5050            "search for exposures with this p3 version", -1);
     51    psMetadataAddU64(pendingexpArgs, PS_LIST_TAIL, "-limit",  0,
     52        "limit result set to N items", 0);
     53    psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-faulted",  0,
     54        "only return imfiles with a fault status set", false);
    5155    psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-simple", 0,
    5256            "use the simple output format", false);
     57
    5358   
    5459    // -pendingimfile
     
    9398            "define banana 2", NULL);
    9499
     100    // -faultexp
     101    psMetadata *faultexpArgs = psMetadataAlloc();
     102    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-exp_tag",  0,
     103        "search by exposure ID", NULL);
     104    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-class",  0,
     105        "search by class", NULL);
     106    psMetadataAddStr(faultexpArgs, PS_LIST_TAIL, "-class_id",  0,
     107        "search by class ID", NULL);
     108    psMetadataAddS8(faultexpArgs, PS_LIST_TAIL, "-code",  0,
     109        "set fault code (required)", 0);
     110
    95111    // -block
    96112    psMetadata *blockArgs = psMetadataAlloc();
     
    128144    psMetadata *argSets = psMetadataAlloc();
    129145    // find which mode we're running under
    130     PXTOOL_MODE("-pendingexp",   P3TOOL_MODE_PENDINGEXP,  pendingexpArgs);
    131     PXTOOL_MODE("-pendingimfile",P3TOOL_MODE_PENDINGIMFILE,pendingimfileArgs);
     146    PXTOOL_MODE("-pendingexp",   P3TOOL_MODE_PENDINGEXP,    pendingexpArgs);
     147    PXTOOL_MODE("-pendingimfile",P3TOOL_MODE_PENDINGIMFILE, pendingimfileArgs);
     148    PXTOOL_MODE("-faultexp",     P3TOOL_MODE_FAULTEXP,      faultexpArgs);
    132149    PXTOOL_MODE("-addprocessedexp", P3TOOL_MODE_ADDPROCESSEDEXP, addprocessedexpArgs);
    133     PXTOOL_MODE("-block",        P3TOOL_MODE_BLOCK,          blockArgs);
    134     PXTOOL_MODE("-masked",       P3TOOL_MODE_MASKED,         maskedArgs);
    135     PXTOOL_MODE("-unblock",      P3TOOL_MODE_UNBLOCK,        unblockArgs);
     150    PXTOOL_MODE("-block",        P3TOOL_MODE_BLOCK,         blockArgs);
     151    PXTOOL_MODE("-masked",       P3TOOL_MODE_MASKED,        maskedArgs);
     152    PXTOOL_MODE("-unblock",      P3TOOL_MODE_UNBLOCK,       unblockArgs);
    136153
    137154    bool argErr = false;
     
    210227    addWhereStr(filter);
    211228
    212     if (config->where->list->n < 1) {
     229    if (psListLength(config->where->list) < 1) {
    213230        psFree(config->where);
    214231        config->where = NULL;
Note: See TracChangeset for help on using the changeset viewer.