Changeset 30353
- Timestamp:
- Jan 24, 2011, 2:43:37 PM (15 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pztool.c
r30227 r30353 47 47 static bool advanceMode(pxConfig *config); 48 48 49 static bool updatepzexpMode(pxConfig *config); 49 50 static bool updatenewexpMode(pxConfig *config); 50 51 … … 85 86 MODECASE(PZTOOL_MODE_TOADVANCE, toadvanceMode); 86 87 MODECASE(PZTOOL_MODE_ADVANCE, advanceMode); 88 MODECASE(PZTOOL_MODE_UPDATEPZEXP, updatepzexpMode); 87 89 MODECASE(PZTOOL_MODE_UPDATENEWEXP, updatenewexpMode); 88 90 default: … … 894 896 || (strncmp(state, "stop", 5) == 0) 895 897 || (strncmp(state, "reg", 4) == 0) 898 || (strncmp(state, "drop", 5) == 0) 896 899 ) 897 900 ) { … … 910 913 } 911 914 915 static bool updatepzexpMode(pxConfig *config) 916 { 917 PS_ASSERT_PTR_NON_NULL(config, false); 918 PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false); 919 PXOPT_LOOKUP_STR(camera, config->args, "-camera", true, false); 920 PXOPT_LOOKUP_STR(telescope,config->args, "-telescope",true, false); 921 PXOPT_LOOKUP_STR(state, config->args, "-set_state",true, false); 922 923 if (!pzDownloadExpSetState(config,exp_name,camera,telescope,state)) { 924 psError(PS_ERR_UNKNOWN, false, "failed to change state for %s:%s:%s", exp_name, camera, telescope); 925 return false; 926 } 927 return true; 928 } 929 930 912 931 static bool updatenewexpMode(pxConfig *config) 913 932 { … … 952 971 953 972 973 974 954 975 #if 0 955 976 static psArray *pzArrayAddArray(psArray *array, psArray *input) -
trunk/ippTools/src/pztool.h
r30206 r30353 37 37 PZTOOL_MODE_TOADVANCE, 38 38 PZTOOL_MODE_ADVANCE, 39 PZTOOL_MODE_UPDATEPZEXP, 39 40 PZTOOL_MODE_UPDATENEWEXP, 40 41 } pztoolMode; -
trunk/ippTools/src/pztoolConfig.c
r30227 r30353 156 156 psMetadataAddStr(advanceArgs, PS_LIST_TAIL, "-label", 0, "define the label for the chip stage", NULL); 157 157 158 // -updatepzexp 159 psMetadata *updatepzexpArgs = psMetadataAlloc(); 160 psMetadataAddStr(updatepzexpArgs, PS_LIST_TAIL, "-exp_name", 0, "search by exposure name (required)", NULL); 161 psMetadataAddStr(updatepzexpArgs, PS_LIST_TAIL, "-camera", 0, "search by camera (required)", NULL); 162 psMetadataAddStr(updatepzexpArgs, PS_LIST_TAIL, "-telescope", 0, "search by telescope (required)", NULL); 163 psMetadataAddStr(updatepzexpArgs, PS_LIST_TAIL, "-set_state", 0, "define new state (required)", NULL); 164 158 165 // -updatenewexp 159 166 psMetadata *updatenewexpArgs = psMetadataAlloc(); … … 178 185 PXOPT_ADD_MODE("-toadvance", "", PZTOOL_MODE_TOADVANCE, toadvanceArgs); 179 186 PXOPT_ADD_MODE("-advance", "", PZTOOL_MODE_ADVANCE, advanceArgs); 187 PXOPT_ADD_MODE("-updatepzexp", "", PZTOOL_MODE_UPDATEPZEXP, updatepzexpArgs); 180 188 PXOPT_ADD_MODE("-updatenewexp", "", PZTOOL_MODE_UPDATENEWEXP,updatenewexpArgs); 181 189
Note:
See TracChangeset
for help on using the changeset viewer.
