IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 12:10:07 PM (16 years ago)
Author:
eugene
Message:

adding -comment, -obs_mode, -pretend options to -definebyquery

File:
1 edited

Legend:

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

    r27834 r28001  
    248248    PXOPT_COPY_F64(config->args,   where, "-posang_max",         "rawExp.posang",         "<");
    249249    PXOPT_COPY_STR(config->args,   where, "-object",             "rawExp.object",         "==");
     250    PXOPT_COPY_STR(config->args,   where, "-comment",            "rawExp.comment",        "LIKE");
     251    PXOPT_COPY_STR(config->args,   where, "-obs_mode",           "rawExp.obs_mode",       "LIKE");
    250252    PXOPT_COPY_F32(config->args,   where, "-sun_angle_min",      "rawExp.sun_angle",      ">=");
    251253    PXOPT_COPY_F32(config->args,   where, "-sun_angle_max",      "rawExp.sun_angle",      "<");
     
    273275    PXOPT_LOOKUP_TIME(registered, config->args, "-registered", false, false);
    274276    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     277    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
    275278
    276279    // check mode
     
    310313    if (!psArrayLength(output)) {
    311314        psTrace("warptool", PS_LOG_INFO, "no rows found");
     315        psFree(output);
     316        return true;
     317    }
     318
     319    if (pretend) {
     320        // negative simple so the default is true
     321        if (!ippdbPrintMetadatas(stdout, output, "rawExp", !simple)) {
     322            psError(PS_ERR_UNKNOWN, false, "failed to print array");
     323            psFree(output);
     324            return false;
     325        }
    312326        psFree(output);
    313327        return true;
Note: See TracChangeset for help on using the changeset viewer.