IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2007, 6:44:37 PM (19 years ago)
Author:
jhoblitt
Message:

rename all *_version fields to be *_id
change chip* tables to use a chip_id
change cam* tables to use a cam_id
change all *_id fields to be S64

File:
1 edited

Legend:

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

    r12058 r12131  
    9191    // -pendingimfile
    9292    psMetadata *pendingimfileArgs = psMetadataAlloc();
     93    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-chip_id",  0,
     94            "search by chip ID", NULL);
    9395    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-exp_tag",  0,
    94             "define exposure ID", NULL);
     96            "search by exposure ID", NULL);
    9597    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-class",  0,
    96             "define class", NULL);
     98            "search by class", NULL);
    9799    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-class_id",  0,
    98             "define class ID", NULL);
     100            "search by class ID", NULL);
    99101    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-inst",  0,
    100             "define camera of interest", NULL);
     102            "search by camera of interest", NULL);
    101103    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-filter",  0,
    102             "define filter of interest", NULL);
     104            "search by filter of interest", NULL);
    103105    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-uri",  0,
    104             "define URL", NULL);
     106            "search by URL", NULL);
    105107    psMetadataAddU64(pendingimfileArgs, PS_LIST_TAIL, "-limit",  0,
    106108            "limit result set to N items", 0);
     
    110112    // -addprocessedimfile
    111113    psMetadata *addprocessedimfileArgs = psMetadataAlloc();
     114    psMetadataAddStr(addprocessedimfileArgs, PS_LIST_TAIL, "-chip_id",  0,
     115            "define chip ID (required)", NULL);
     116#if 0
    112117    psMetadataAddStr(addprocessedimfileArgs, PS_LIST_TAIL, "-exp_tag",  0,
    113             "define exp_tag (required)", NULL);
     118            "define exposure tag (required) (XXX redudant with chip_id)", NULL);
     119#endif
    114120    psMetadataAddStr(addprocessedimfileArgs, PS_LIST_TAIL, "-class_id",  0,
    115121            "define class ID", NULL);
     
    131137    // -processedimfile
    132138    psMetadata *processedimfileArgs = psMetadataAlloc();
     139    psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-chip_id",  0,
     140            "define chip ID (required)", NULL);
    133141    psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-exp_tag",  0,
    134142            "define exposure ID", NULL);
     
    152160    // -updateprocessedimfile
    153161    psMetadata *updateprocessedimfileArgs = psMetadataAlloc();
     162    psMetadataAddStr(updateprocessedimfileArgs, PS_LIST_TAIL, "-chip_id",  0,
     163            "define chip ID (required)", NULL);
    154164    psMetadataAddStr(updateprocessedimfileArgs, PS_LIST_TAIL, "-exp_tag",  0,
    155165            "search by exposure ID", NULL);
     
    257267    config->where = psMetadataAlloc();
    258268
     269{
     270    psString str = NULL;
     271    bool status = false;
     272    if ((str = psMetadataLookupStr(&status, config->args, "-chip_id"))) {
     273        if (!psMetadataAddS64(config->where, PS_LIST_TAIL, "chip_id", 0, "==", (psS64)atoll(str))) {
     274            psError(PS_ERR_UNKNOWN, false, "failed to add item chip_id");
     275            psFree(config);
     276            return NULL;
     277        }
     278    }
     279}
     280
    259281    addWhereStr(exp_tag);
    260282    // convert '-inst' to 'camera'
Note: See TracChangeset for help on using the changeset viewer.