Changeset 10422 for trunk/psModules/src/config/pmConfig.h
- Timestamp:
- Dec 3, 2006, 4:14:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.h
r10421 r10422 9 9 /// @author Eugene Magnier, IfA 10 10 /// 11 /// @version $Revision: 1. 19$ $Name: not supported by cvs2svn $12 /// @date $Date: 2006-12-0 3 18:48:10$11 /// @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 12 /// @date $Date: 2006-12-04 02:14:09 $ 13 13 /// 14 14 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii … … 28 28 /// psModules --- there is no need for the user to know about it. 29 29 typedef enum { 30 P _PM_RECIPE_SOURCE_NONE = 0x00, ///< None yet31 P _PM_RECIPE_SOURCE_SITE = 0x01, ///< Site configuration32 P _PM_RECIPE_SOURCE_CAMERA = 0x02, ///< Camera configuration33 P _PM_RECIPE_SOURCE_CL = 0x04, ///< Command-line34 P _PM_RECIPE_SOURCE_SYMBOLIC = 0x14, ///< Symbolic link, specified on command-line35 P _PM_RECIPE_SOURCE_ALL = 0xff ///< All sources36 } p _pmRecipeSource;30 PM_RECIPE_SOURCE_NONE = 0x00, ///< None yet 31 PM_RECIPE_SOURCE_SITE = 0x01, ///< Site configuration 32 PM_RECIPE_SOURCE_CAMERA = 0x02, ///< Camera configuration 33 PM_RECIPE_SOURCE_CL = 0x04, ///< Command-line 34 PM_RECIPE_SOURCE_SYMBOLIC = 0x14, ///< Symbolic link, specified on command-line 35 PM_RECIPE_SOURCE_ALL = 0xff ///< All sources 36 } pmRecipeSource; 37 37 38 38 /// Configuration information … … 52 52 int *argc; ///< Number of command-line arguments 53 53 char **argv; ///< Command-line arguments (raw version) 54 char *defaultRecipe; ///< name of top-level recipe for this program 54 55 // Private members 55 p _pmRecipeSource recipesRead; ///< Which recipe sources have been read56 pmRecipeSource recipesRead; ///< Which recipe sources have been read 56 57 psMetadata *recipesSource; ///< Where each recipe came from 57 58 } … … 81 82 /// psLib log, trace and time setups are also performed if specified in the site configuration. 82 83 pmConfig *pmConfigRead(int *argc, ///< Number of command-line arguments 83 char **argv ///< Array of command-line arguments 84 char **argv, ///< Array of command-line arguments 85 char *defaultRecipe ///< name of top-level recipe for this program 84 86 ); 85 87 … … 122 124 /// Attempt to read recipes from the sources that are available but have not already been read. Having read a 123 125 /// recipe, attempt to resolve symbolic links that were specified on the command line. 124 bool pmConfigReadRecipes(pmConfig *config ///< Configuration 126 bool pmConfigReadRecipes(pmConfig *config, ///< Configuration 127 pmRecipeSource source ///< desired sources for recipes 125 128 ); 126 129 … … 164 167 psString pmConfigConvertFilename (char *filename, pmConfig *config); 165 168 169 170 bool pmConfigLoadRecipeArguments (pmConfig *config); 171 bool pmConfigLoadRecipeOptions (pmConfig *config, char *flag); 172 166 173 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
