IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2008, 3:39:54 PM (18 years ago)
Author:
jhoblitt
Message:

consitently handle *_id fields as numeric values instead of converting back of forth between ints and strings

File:
1 edited

Legend:

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

    r18172 r18336  
    4949    psMetadata *definebydefinebyqueryArgs = psMetadataAlloc();
    5050    // XXX need to allow multiple chip_ids
    51     psMetadataAddStr(definebydefinebyqueryArgs, PS_LIST_TAIL, "-chip_id",  0,
    52             "search by chip_id", NULL);
     51    psMetadataAddS64(definebydefinebyqueryArgs, PS_LIST_TAIL, "-chip_id",  0,
     52            "search by chip_id", 0);
    5353    // XXX need to allow multiple exp_ids
    54     psMetadataAddStr(definebydefinebyqueryArgs, PS_LIST_TAIL, "-exp_id",  0,
    55             "search by exp_id", NULL);
     54    psMetadataAddS64(definebydefinebyqueryArgs, PS_LIST_TAIL, "-exp_id",  0,
     55            "search by exp_id", 0);
    5656    psMetadataAddStr(definebydefinebyqueryArgs, PS_LIST_TAIL, "-exp_name",  0,
    5757            "search by exp_name", NULL);
     
    148148    psMetadata *updaterunArgs = psMetadataAlloc();
    149149    // XXX need to allow multiple cam_ids
    150     psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-cam_id",  0,
    151             "search by cam_id", NULL);
     150    psMetadataAddS64(updaterunArgs, PS_LIST_TAIL, "-cam_id",  0,
     151            "search by cam_id", 0);
    152152    // XXX need to allow multiple chip_ids
    153     psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-chip_id",  0,
    154             "search by chip_id", NULL);
     153    psMetadataAddS64(updaterunArgs, PS_LIST_TAIL, "-chip_id",  0,
     154            "search by chip_id", 0);
    155155    // XXX need to allow multiple exp_ids
    156     psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-exp_id",  0,
    157             "search by exp_id", NULL);
     156    psMetadataAddS64(updaterunArgs, PS_LIST_TAIL, "-exp_id",  0,
     157            "search by exp_id", 0);
    158158    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-exp_name",  0,
    159159            "search by exp_name", NULL);
     
    241241    // -pendingexp
    242242    psMetadata *pendingexpArgs = psMetadataAlloc();
    243     psMetadataAddStr(pendingexpArgs, PS_LIST_TAIL, "-cam_id", 0,
    244             "search by camtool ID", NULL);
    245     psMetadataAddStr(pendingexpArgs, PS_LIST_TAIL, "-chip_id", 0,
    246             "search by chiptool ID", NULL);
     243    psMetadataAddS64(pendingexpArgs, PS_LIST_TAIL, "-cam_id", 0,
     244            "search by camtool ID", 0);
     245    psMetadataAddS64(pendingexpArgs, PS_LIST_TAIL, "-chip_id", 0,
     246            "search by chiptool ID", 0);
    247247    psMetadataAddU64(pendingexpArgs, PS_LIST_TAIL, "-limit",  0,
    248248            "limit result set to N items", 0);
     
    253253    // -pendingimfile
    254254    psMetadata *pendingimfileArgs = psMetadataAlloc();
    255     psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-cam_id", 0,
    256             "search by camtool ID", NULL);
    257     psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-chip_id", 0,
    258             "search by chiptool ID", NULL);
     255    psMetadataAddS64(pendingimfileArgs, PS_LIST_TAIL, "-cam_id", 0,
     256            "search by camtool ID", 0);
     257    psMetadataAddS64(pendingimfileArgs, PS_LIST_TAIL, "-chip_id", 0,
     258            "search by chiptool ID", 0);
    259259    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-class", 0,
    260260            "search by class", NULL);
     
    267267    // -addprocessedexp
    268268    psMetadata *addprocessedexpArgs = psMetadataAlloc();
    269     psMetadataAddStr(addprocessedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
    270             "define camtool ID (required)", NULL);
     269    psMetadataAddS64(addprocessedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
     270            "define camtool ID (required)", 0);
    271271    psMetadataAddStr(addprocessedexpArgs, PS_LIST_TAIL, "-uri", 0,
    272272            "define URI (required)", NULL);
     
    328328    // -processedexp
    329329    psMetadata *processedexpArgs = psMetadataAlloc();
    330     psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
    331             "search by camtool ID", NULL);
    332     psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-chip_id", 0,
    333             "search by chiptool ID", NULL);
     330    psMetadataAddS64(processedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
     331            "search by camtool ID", 0);
     332    psMetadataAddS64(processedexpArgs, PS_LIST_TAIL, "-chip_id", 0,
     333            "search by chiptool ID", 0);
    334334    psMetadataAddU64(processedexpArgs, PS_LIST_TAIL, "-limit",  0,
    335335            "limit result set to N items", 0);
     
    342342    psMetadata *revertprocessedexpArgs = psMetadataAlloc();
    343343    // XXX need to allow multiple cam_ids
    344     psMetadataAddStr(revertprocessedexpArgs, PS_LIST_TAIL, "-cam_id",  0,
    345             "search by cam_id", NULL);
     344    psMetadataAddS64(revertprocessedexpArgs, PS_LIST_TAIL, "-cam_id",  0,
     345            "search by cam_id", 0);
    346346    // XXX need to allow multiple chip_ids
    347     psMetadataAddStr(revertprocessedexpArgs, PS_LIST_TAIL, "-chip_id",  0,
    348             "search by chip_id", NULL);
     347    psMetadataAddS64(revertprocessedexpArgs, PS_LIST_TAIL, "-chip_id",  0,
     348            "search by chip_id", 0);
    349349    // XXX need to allow multiple exp_ids
    350     psMetadataAddStr(revertprocessedexpArgs, PS_LIST_TAIL, "-exp_id",  0,
    351             "search by exp_id", NULL);
     350    psMetadataAddS64(revertprocessedexpArgs, PS_LIST_TAIL, "-exp_id",  0,
     351            "search by exp_id", 0);
    352352    psMetadataAddStr(revertprocessedexpArgs, PS_LIST_TAIL, "-exp_name",  0,
    353353            "search by exp_name", NULL);
     
    433433    // -updateprocessedexp
    434434    psMetadata *updateprocessedexpArgs = psMetadataAlloc();
    435     psMetadataAddStr(updateprocessedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
    436             "search by camtool ID", NULL);
    437     psMetadataAddStr(updateprocessedexpArgs, PS_LIST_TAIL, "-chip_id",  0,
    438             "search by chiptool ID", NULL);
     435    psMetadataAddS64(updateprocessedexpArgs, PS_LIST_TAIL, "-cam_id", 0,
     436            "search by camtool ID", 0);
     437    psMetadataAddS64(updateprocessedexpArgs, PS_LIST_TAIL, "-chip_id",  0,
     438            "search by chiptool ID", 0);
    439439    psMetadataAddStr(updateprocessedexpArgs, PS_LIST_TAIL, "-class",  0,
    440440            "search by class", NULL);
Note: See TracChangeset for help on using the changeset viewer.