IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2007, 10:15:48 AM (19 years ago)
Author:
Paul Price
Message:

Gene pointed out that the file rules are also read in pmConfig (when the '-F' switch is used on the command-line), and the new ability to read file rules from a separate file wasn't implemented there. I've moved the function that gets a file rule from pmFPAfileDefine.c to pmConfig.c (now named pmConfigFileRule), and now both the pmConfig and pmFPAfileDefine functions use this.

File:
1 edited

Legend:

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

    r12916 r15217  
    11/*  @file pmConfig.h
    22 *  @brief Configuration functions
    3  * 
     3 *
    44 *  @author Paul Price, IfA
    55 *  @author Eugene Magnier, IfA
    6  * 
    7  *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-04-19 02:10:12 $
     6 *
     7 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-10-04 20:15:48 $
    99 *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1010 */
     
    5656    int *argc;                          ///< Number of command-line arguments
    5757    char **argv;                        ///< Command-line arguments (raw version)
    58     # endif 
     58    # endif
    5959}
    6060pmConfig;
     
    110110/// configuration.  The accepted format is returned.
    111111psMetadata *pmConfigCameraFormatFromHeader(pmConfig *config, ///< The configuration
    112                                            const psMetadata *header, ///< The FITS header
    113                                            bool readRecipes ///< optionally read the recipes as well as the format
     112                                           const psMetadata *header, ///< The FITS header
     113                                           bool readRecipes ///< optionally read the recipes as well as the format
    114114    );
    115115
     
    170170                          );
    171171
     172/// Get the file rule of interest
     173///
     174/// Look up the name of the set of file rules to use, get that set from the site configuration, and return the
     175/// appropriate rule from the set.
     176psMetadata *pmConfigFileRule(const pmConfig *config, ///< Configuration
     177                             const psMetadata *camera, ///< Camera configuration of interest
     178                             const char *name ///< Name of rule to read
     179    );
     180
    172181/// @}
    173182#endif
Note: See TracChangeset for help on using the changeset viewer.