- Timestamp:
- Jul 11, 2008, 5:40:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080706/ippTools/src/pxinjectConfig.c
r18468 r18491 45 45 // -newExp 46 46 psMetadata *newExpArgs = psMetadataAlloc(); 47 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_exp_name", 0, 48 "define the exp_name (required)", NULL); 49 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_inst", 0, 50 "define the camera name (required)", NULL); 51 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_telescope", 0, 52 "define the telescope name (required)", NULL); 53 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-workdir", 0, 54 "define workdir (required)", 0); 55 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-reduction", 0, 56 "define reduction class", NULL); 57 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dvodb", 0, 58 "define the dvodb for the next processing step", NULL); 59 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tess_id", 0, 60 "define the tess_id for the next processing step", NULL); 61 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-end_stage", 0, 62 "define the end goal processing step", NULL); 63 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-label", 0, 64 "define a label (carried to chip stage)", NULL); 65 psMetadataAddBool(newExpArgs, PS_LIST_TAIL, "-simple", 0, 66 "use the simple output format", false); 47 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_exp_name", 0, "define the exp_name (required)", NULL); 48 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_inst", 0, "define the camera name (required)", NULL); 49 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tmp_telescope", 0, "define the telescope name (required)", NULL); 50 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-workdir", 0, "define workdir (required)", 0); 51 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-reduction", 0, "define reduction class", NULL); 52 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dvodb", 0, "define the dvodb for the next processing step", NULL); 53 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-tess_id", 0, "define the tess_id for the next processing step", NULL); 54 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-end_stage", 0, "define the end goal processing step", NULL); 55 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-label", 0, "define a label (carried to chip stage)", NULL); 56 psMetadataAddBool(newExpArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 67 57 68 58 // -newImfile 69 59 psMetadata *newImfileArgs = psMetadataAlloc(); 70 psMetadataAddS64(newImfileArgs, PS_LIST_TAIL, "-exp_id", 0, 71 "define the exp_id (required)", 0); 72 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-tmp_class_id", 0, 73 "define the class ID (required)", NULL); 74 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-uri", 0, 75 "define the URI (required)", NULL); 60 psMetadataAddS64(newImfileArgs, PS_LIST_TAIL, "-exp_id", 0, "define the exp_id (required)", 0); 61 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-tmp_class_id", 0, "define the class ID (required)", NULL); 62 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-uri", 0, "define the URI (required)", NULL); 76 63 77 64 // -updatenewExp 78 65 psMetadata *updatenewExpArgs = psMetadataAlloc(); 79 psMetadataAddS64(updatenewExpArgs, PS_LIST_TAIL, "-exp_id", 0, 80 "define the exp_id (required)", 0); 81 psMetadataAddStr(updatenewExpArgs, PS_LIST_TAIL, "-state", 0, 82 "set state (required)", NULL); 83 66 psMetadataAddS64(updatenewExpArgs, PS_LIST_TAIL, "-exp_id", 0, "define the exp_id (required)", 0); 67 psMetadataAddStr(updatenewExpArgs, PS_LIST_TAIL, "-state", 0, "set state (required)", NULL); 84 68 85 69 psMetadata *argSets = psMetadataAlloc(); … … 101 85 psFree(modes); 102 86 103 // generate SQL where clause104 config->where = psMetadataAlloc();105 106 // XXXX this funciton had a large number of bogus entries107 PXOPT_ADD_WHERE_S64(exp_id);108 PXOPT_ADD_WHERE_STR(class_id);109 110 if (config->where->list->n < 1) {111 psFree(config->where);112 config->where = NULL;113 }114 115 87 // define Database handle, if used 116 88 // do this last so we don't setup a connection before CLI options are
Note:
See TracChangeset
for help on using the changeset viewer.
