IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2006, 4:14:09 PM (20 years ago)
Author:
magnier
Message:

updated pmConfigReadRecipes to implement config inheritence

File:
1 edited

Legend:

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

    r10421 r10422  
    99/// @author Eugene Magnier, IfA
    1010///
    11 /// @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    12 /// @date $Date: 2006-12-03 18:48:10 $
     11/// @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     12/// @date $Date: 2006-12-04 02:14:09 $
    1313///
    1414/// Copyright 2005-2006 Institute for Astronomy, University of Hawaii
     
    2828/// psModules --- there is no need for the user to know about it.
    2929typedef enum {
    30     P_PM_RECIPE_SOURCE_NONE        = 0x00, ///< None yet
    31     P_PM_RECIPE_SOURCE_SITE        = 0x01, ///< Site configuration
    32     P_PM_RECIPE_SOURCE_CAMERA      = 0x02, ///< Camera configuration
    33     P_PM_RECIPE_SOURCE_CL          = 0x04, ///< Command-line
    34     P_PM_RECIPE_SOURCE_SYMBOLIC    = 0x14, ///< Symbolic link, specified on command-line
    35     P_PM_RECIPE_SOURCE_ALL         = 0xff  ///< All sources
    36 } 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;
    3737
    3838/// Configuration information
     
    5252    int *argc;                          ///< Number of command-line arguments
    5353    char **argv;                        ///< Command-line arguments (raw version)
     54    char *defaultRecipe;  ///< name of top-level recipe for this program
    5455    // Private members
    55     p_pmRecipeSource recipesRead;       ///< Which recipe sources have been read
     56    pmRecipeSource recipesRead;       ///< Which recipe sources have been read
    5657    psMetadata *recipesSource;          ///< Where each recipe came from
    5758}
     
    8182/// psLib log, trace and time setups are also performed if specified in the site configuration.
    8283pmConfig *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
    8486                      );
    8587
     
    122124/// Attempt to read recipes from the sources that are available but have not already been read.  Having read a
    123125/// recipe, attempt to resolve symbolic links that were specified on the command line.
    124 bool pmConfigReadRecipes(pmConfig *config ///< Configuration
     126bool pmConfigReadRecipes(pmConfig *config, ///< Configuration
     127                         pmRecipeSource source ///< desired sources for recipes
    125128                        );
    126129
     
    164167psString pmConfigConvertFilename (char *filename, pmConfig *config);
    165168
     169
     170bool pmConfigLoadRecipeArguments (pmConfig *config);
     171bool pmConfigLoadRecipeOptions (pmConfig *config, char *flag);
     172
    166173#endif
Note: See TracChangeset for help on using the changeset viewer.