IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2008, 10:09:10 AM (18 years ago)
Author:
eugene
Message:

re-vamping config to define user/site/system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080219/psModules/src/config/pmConfig.h

    r15385 r16542  
    55 *  @author Eugene Magnier, IfA
    66 *
    7  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-10-26 02:41:15 $
     7 *  @version $Revision: 1.32.6.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-02-19 20:09:09 $
    99 *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1010 */
     
    2525typedef enum {
    2626    PM_RECIPE_SOURCE_NONE        = 0x00, ///< None yet
    27     PM_RECIPE_SOURCE_SITE        = 0x01, ///< Site configuration
     27    PM_RECIPE_SOURCE_SYSTEM      = 0x01, ///< System configuration
    2828    PM_RECIPE_SOURCE_CAMERA      = 0x02, ///< Camera configuration
    2929    PM_RECIPE_SOURCE_CL          = 0x04, ///< Command-line
     
    3434/// Configuration information
    3535///
    36 /// This structure stores the configuration information: the site, camera and recipe configuration, the
     36/// This structure stores the configuration information: user, site, system, camera and recipe configuration, the
    3737/// command-line arguments, the pmFPAfiles used, and the database handle.
    3838typedef struct {
    39     psMetadata *site;                   ///< Site configuration
     39    psMetadata *xxUser;                 ///< User configuration
     40    psMetadata *xxSite;                 ///< Site configuration
     41    psMetadata *xxSystem;               ///< System configuration
    4042    psMetadata *camera;                 ///< Camera specification
    4143    psString cameraName;                ///< Camera name
     
    6870/// Read configuration information from the command line.
    6971///
    70 /// pmConfigRead loads the site configuration (the file name is specified by "-site SITE_FILE" on the
    71 /// command-line, the PS_SITE environment variable, or it is $HOME/.ipprc).  The configuration search path is
     72/// pmConfigRead loads the user configuration (the file name is specified by "-ipprc FILE" on the
     73/// command-line, the IPPRC environment variable, or it is $HOME/.ipprc).  The configuration search path is
    7274/// set. The camera configuration is loaded if it is specified on the command line ("-camera
    7375/// CAMERA_FILE"). Recipes specified on the command line ("-recipe RECIPE_NAME RECIPE_SOURCE") are also
    7476/// 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 site configuration.
     77/// psLib log, trace and time setups are also performed if specified in the user configuration.
    7678pmConfig *pmConfigRead(int *argc,       ///< Number of command-line arguments
    7779                       char **argv, ///< Array of command-line arguments
     
    166168/// Get the file rule of interest
    167169///
    168 /// Look up the name of the set of file rules to use, get that set from the site configuration, and return the
     170/// Look up the name of the set of file rules to use, get that set from the system configuration, and return the
    169171/// appropriate rule from the set.
    170172psMetadata *pmConfigFileRule(const pmConfig *config, ///< Configuration
Note: See TracChangeset for help on using the changeset viewer.