IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2008, 10:21:52 AM (18 years ago)
Author:
eugene
Message:

using new user/site/system construction for config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.h

    r15385 r16611  
    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.33 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-02-22 20:20:38 $
    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 *user;                   ///< User configuration
     40    psMetadata *site;                   ///< Site configuration
     41    psMetadata *system;                 ///< System configuration
     42    psMetadata *complete;               ///< Full merged configuration
    4043    psMetadata *camera;                 ///< Camera specification
    4144    psString cameraName;                ///< Camera name
     
    6871/// Read configuration information from the command line.
    6972///
    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
     73/// 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
    7275/// set. The camera configuration is loaded if it is specified on the command line ("-camera
    7376/// CAMERA_FILE"). Recipes specified on the command line ("-recipe RECIPE_NAME RECIPE_SOURCE") are also
    7477/// 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.
     78/// psLib log, trace and time setups are also performed if specified in the user configuration.
    7679pmConfig *pmConfigRead(int *argc,       ///< Number of command-line arguments
    7780                       char **argv, ///< Array of command-line arguments
     
    166169/// Get the file rule of interest
    167170///
    168 /// Look up the name of the set of file rules to use, get that set from the site configuration, and return the
     171/// Look up the name of the set of file rules to use, get that set from the system configuration, and return the
    169172/// appropriate rule from the set.
    170173psMetadata *pmConfigFileRule(const pmConfig *config, ///< Configuration
Note: See TracChangeset for help on using the changeset viewer.