IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13974


Ignore:
Timestamp:
Jun 25, 2007, 2:30:38 PM (19 years ago)
Author:
eugene
Message:

adding -select_state option to residimfile

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r13937 r13974  
    50015001    PS_ASSERT_PTR_NON_NULL(config, false);
    50025002
     5003    char *value = NULL;
    50035004    bool status = false;
    50045005    psU64 limit = psMetadataLookupU64(&status, config->args, "-limit");
     
    50305031        "   USING(exp_tag)"
    50315032        " WHERE"
    5032         "   detRun.state = 'run'"
    50335033    );
     5034    // NOTE the above WHERE is completed with the following line:
     5035
     5036    // add the two required restrictions: detRun.state and detRun.mode
     5037    if ((value = psMetadataLookupStr(&status, config->args, "-select_state"))) {
     5038        psStringAppend(&query, " detRun.state = '%s'", value);
     5039    } else {
     5040        psStringAppend(&query, " detRun.state = 'run'");
     5041    }
    50345042
    50355043    if (config->where) {
  • trunk/ippTools/src/dettoolConfig.c

    r13937 r13974  
    700700    psMetadataAddBool(residimfileArgs, PS_LIST_TAIL, "-simple",  0,
    701701            "use the simple output format", false);
     702    psMetadataAddStr(residimfileArgs, PS_LIST_TAIL, "-select_state",  0,
     703            "search for state", NULL);
    702704
    703705    // -addresidexp
Note: See TracChangeset for help on using the changeset viewer.