Changeset 10439
- Timestamp:
- Dec 4, 2006, 11:51:33 AM (19 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 8 edited
-
ppFocusArguments.c (modified) (2 diffs)
-
ppFocusParseCamera.c (modified) (1 diff)
-
ppImageArguments.c (modified) (2 diffs)
-
ppImageAstrom.c (modified) (1 diff)
-
ppImageLoop.c (modified) (1 diff)
-
ppImageParseCamera.c (modified) (1 diff)
-
ppImagePhotom.c (modified) (1 diff)
-
ppTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppFocusArguments.c
r8751 r10439 18 18 19 19 // load the site-wide configuration information 20 pmConfig *config = pmConfigRead(&argc, argv );20 pmConfig *config = pmConfigRead(&argc, argv, RECIPE_NAME); 21 21 if (config == NULL) { 22 22 psErrorStackPrint(stderr, "Can't find site configuration!\n"); … … 24 24 } 25 25 26 // save the following additional recipe values based on command-line options 27 // these options override the PPIMAGE recipe values loaded from recipe files 28 psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME); 29 26 30 // save these recipe options until we have loaded the options 27 psMetadata *options = psMetadataAlloc ();28 psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS", PS_DATA_METADATA, "", options);31 // psMetadata *options = psMetadataAlloc (); 32 // psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS", PS_DATA_METADATA, "", options); 29 33 30 34 // the following options override the PPIMAGE recipe options -
trunk/ppImage/src/ppFocusParseCamera.c
r8751 r10439 17 17 return NULL; 18 18 } 19 20 // add recipe options supplied on command line21 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, RECIPE_NAME);22 psMetadata *arglist = psMetadataLookupPtr (&status, config->arguments, "PPIMAGE.OPTIONS");23 psMetadataCopy (recipe, arglist);24 19 25 20 // parse the options from the metadata format to the ppImageOptions structure -
trunk/ppImage/src/ppImageArguments.c
r10209 r10439 34 34 35 35 // load the site-wide configuration information 36 pmConfig *config = pmConfigRead(&argc, argv );36 pmConfig *config = pmConfigRead(&argc, argv, RECIPE_NAME); 37 37 if (config == NULL) { 38 38 psErrorStackPrint(stderr, "Can't find site configuration!\n"); … … 40 40 } 41 41 42 // save the following additional recipe values based on command-line options 43 // these options override the PPIMAGE recipe values loaded from recipe files 44 psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME); 45 42 46 // save these recipe options until we have loaded the options 43 psMetadata *options = psMetadataAlloc ();44 psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS", PS_DATA_METADATA, "", options);47 // psMetadata *options = psMetadataAlloc (); 48 // psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PPIMAGE.OPTIONS", PS_DATA_METADATA, "", options); 45 49 46 50 if ((argnum = psArgumentGet(argc, argv, "-stat"))) { -
trunk/ppImage/src/ppImageAstrom.c
r9648 r10439 11 11 // select recipe options supplied on command line 12 12 // XXX move these options to the "PSASTRO" recipe? 13 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, RECIPE_NAME);13 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSASTRO_RECIPE); 14 14 15 15 // find or define a pmFPAfile PSPHOT.INPUT -
trunk/ppImage/src/ppImageLoop.c
r10366 r10439 17 17 18 18 bool mdok; // Status of MD lookup 19 psMetadata *extraOpts = psMetadataLookupMetadata(&mdok, config->arguments, 20 "PPIMAGE.OPTIONS"); // Extra options 21 const char *statsName = psMetadataLookupStr(&mdok, extraOpts, "STATS"); // Filename for statistics 19 psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, RECIPE_NAME); 20 const char *statsName = psMetadataLookupStr(&mdok, recipe, "STATS"); // Filename for statistics 22 21 psMetadata *stats = NULL; // Container for statistics 23 22 FILE *statsFile = NULL; // File stream for statistics -
trunk/ppImage/src/ppImageParseCamera.c
r10215 r10439 35 35 // add recipe options supplied on command line 36 36 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, RECIPE_NAME); 37 psMetadata *arglist = psMetadataLookupPtr (&status, config->arguments, "PPIMAGE.OPTIONS");38 psMetadataCopy (recipe, arglist);39 37 40 38 // parse the options from the metadata format to the ppImageOptions structure -
trunk/ppImage/src/ppImagePhotom.c
r9660 r10439 14 14 15 15 // select recipe options supplied on command line 16 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, "PSPHOT");16 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE); 17 17 18 18 // set default recipe values here -
trunk/ppImage/src/ppTest.c
r9539 r10439 17 17 // ppImageConfig.c 18 18 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 19 pmConfig *config = pmConfigRead(&argc, argv );19 pmConfig *config = pmConfigRead(&argc, argv, "PPIMAGE"); 20 20 if (! config) { 21 21 psErrorStackPrint(stderr, "Can't find site configuration!\n"); … … 73 73 } 74 74 // Determine the correct recipe to use 75 if (! config->recipes && !pmConfigReadRecipes(config )) {75 if (! config->recipes && !pmConfigReadRecipes(config, PM_RECIPE_SOURCE_CAMERA | PM_RECIPE_SOURCE_CL)) { 76 76 // There's no point in continuing if we can't work out what recipes to use 77 77 psErrorStackPrint(stderr, "Can't find recipe configuration!\n");
Note:
See TracChangeset
for help on using the changeset viewer.
