Changeset 16611 for trunk/psModules/src/config/pmConfig.h
- Timestamp:
- Feb 22, 2008, 10:21:52 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.h
r15385 r16611 5 5 * @author Eugene Magnier, IfA 6 6 * 7 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $8 * @date $Date: 200 7-10-26 02:41:15$7 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-02-22 20:20:38 $ 9 9 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 10 10 */ … … 25 25 typedef enum { 26 26 PM_RECIPE_SOURCE_NONE = 0x00, ///< None yet 27 PM_RECIPE_SOURCE_S ITE = 0x01, ///< Siteconfiguration27 PM_RECIPE_SOURCE_SYSTEM = 0x01, ///< System configuration 28 28 PM_RECIPE_SOURCE_CAMERA = 0x02, ///< Camera configuration 29 29 PM_RECIPE_SOURCE_CL = 0x04, ///< Command-line … … 34 34 /// Configuration information 35 35 /// 36 /// This structure stores the configuration information: the site, camera and recipe configuration, the36 /// This structure stores the configuration information: user, site, system, camera and recipe configuration, the 37 37 /// command-line arguments, the pmFPAfiles used, and the database handle. 38 38 typedef struct { 39 psMetadata *site; ///< Site configuration 39 psMetadata *user; ///< User configuration 40 psMetadata *site; ///< Site configuration 41 psMetadata *system; ///< System configuration 42 psMetadata *complete; ///< Full merged configuration 40 43 psMetadata *camera; ///< Camera specification 41 44 psString cameraName; ///< Camera name … … 68 71 /// Read configuration information from the command line. 69 72 /// 70 /// pmConfigRead loads the site configuration (the file name is specified by "-site SITE_FILE" on the71 /// command-line, the PS_SITEenvironment variable, or it is $HOME/.ipprc). The configuration search path is73 /// pmConfigRead loads the user configuration (the file name is specified by "-ipprc FILE" on the 74 /// command-line, the IPPRC environment variable, or it is $HOME/.ipprc). The configuration search path is 72 75 /// set. The camera configuration is loaded if it is specified on the command line ("-camera 73 76 /// CAMERA_FILE"). Recipes specified on the command line ("-recipe RECIPE_NAME RECIPE_SOURCE") are also 74 77 /// loaded. These command-line arguments are removed from from the command-line, to simplify parsing. The 75 /// psLib log, trace and time setups are also performed if specified in the siteconfiguration.78 /// psLib log, trace and time setups are also performed if specified in the user configuration. 76 79 pmConfig *pmConfigRead(int *argc, ///< Number of command-line arguments 77 80 char **argv, ///< Array of command-line arguments … … 166 169 /// Get the file rule of interest 167 170 /// 168 /// Look up the name of the set of file rules to use, get that set from the s iteconfiguration, and return the171 /// Look up the name of the set of file rules to use, get that set from the system configuration, and return the 169 172 /// appropriate rule from the set. 170 173 psMetadata *pmConfigFileRule(const pmConfig *config, ///< Configuration
Note:
See TracChangeset
for help on using the changeset viewer.
