Changeset 6150 for trunk/ippTools/src/chiptoolConfig.c
- Timestamp:
- Jan 21, 2006, 5:35:57 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptoolConfig.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptoolConfig.c
r6133 r6150 1 1 #include <pmConfig.h> 2 2 3 # include "p2tools.h"3 #include "p2tools.h" 4 4 5 bool p2searchConfig (p2Config *config, int argc, char **argv) {5 bool p2searchConfig(p2Config *config, int argc, char **argv) { 6 6 PS_ASSERT_PTR_NON_NULL(config, false); 7 7 … … 11 11 config->recipe = NULL; // Recipe configuration 12 12 config->camera_name = NULL; // Camera name 13 config->filter = NULL; // Filter name 13 14 14 15 if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) { … … 46 47 config->mode = P2_MODE_PENDING; 47 48 } 49 /* 48 50 if ((N = psArgumentGet (argc, argv, "-update"))) { 49 51 psArgumentRemove (N, &argc, argv); … … 53 55 config->mode = P2_MODE_UPDATE; 54 56 } 57 */ 55 58 if ((N = psArgumentGet (argc, argv, "-done"))) { 56 59 psArgumentRemove (N, &argc, argv); … … 58 61 psAbort (argv[0], "only one mode selection is allowed"); 59 62 } 60 config->mode = P2_MODE_ UPDATE;63 config->mode = P2_MODE_DONE; 61 64 } 62 65 … … 65 68 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-define", 0, "examine raw image table, add to pending image table", ""); 66 69 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-pending", 0, "examine pending image table, write ppImage output", ""); 67 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 68 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time", 0, "define time range of interest", ""); 70 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 71 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-done", 0, "mov image from pending to done table", ""); 72 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time", 0, "define time range of interest", ""); 69 73 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-inst", 0, "define camera of interest", ""); 70 74 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter", 0, "define filter of interest", ""); 75 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id", 0, "define exposure ID", ""); 76 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class", 0, "define class", ""); 77 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class_id", 0, "define class ID", ""); 78 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-url", 0, "define URL", ""); 71 79 72 80 if (config->mode == P2_MODE_NONE) { … … 80 88 printf("\nPan-STARRS Phase 2 Search Tool\n\n"); 81 89 printf("Usage: %s [mode] [options]\n\n", argv[0]); 82 printf(" [mode] : -quick | -define | -pending | - update\n\n");90 printf(" [mode] : -quick | -define | -pending | -donee\n\n"); 83 91 psArgumentHelp(config->arguments); 84 92 psFree(config->arguments); … … 89 97 config->camera_name = psMetadataLookupStr(&status, config->arguments, 90 98 "-inst"); 99 // XXX why is "" being returned when -inst is missing? 100 if (strcmp(config->camera_name, "") == 0) { 101 config->camera_name = NULL; 102 } 103 config->exp_id = psMetadataLookupStr(&status, config->arguments, "-exp_id"); 104 config->class = psMetadataLookupStr(&status, config->arguments, "-class"); 105 config->class_id = psMetadataLookupStr(&status, config->arguments, 106 "-class_id"); 107 config->url = psMetadataLookupStr(&status, config->arguments, "-url"); 108 91 109 // add the input and output images to the arguments list 92 110 //psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.
