IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2008, 5:45:56 PM (18 years ago)
Author:
Paul Price
Message:

Removing use of pmConfig.complete in favour of proper use of what's now called pmConfigFileIngest (used to be metadataItemReadFile). The idea is that configuration files are read in to the metadata item where they are defined. The result is that the .ipprc (pmConfig.user) can be dumped to a file, and will contain all the other stuff as well, so that it can be loaded in (using '-ipprc XXX' on the command-line) and we have a fully defined configuration without having to load anything else (which may have changed). The problem with pmConfig.complete was that it produced multiple unsynchronised versions: you could access and change data in pmConfig.complete without pmConfig.user or pmConfig.system being updated. This check in restores things to the way they used to be, where everything is synchronised.

File:
1 edited

Legend:

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

    r18905 r18908  
    55 *  @author Eugene Magnier, IfA
    66 *
    7  *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2008-08-05 02:16:06 $
     7 *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-08-05 03:45:56 $
    99 *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1010 */
     
    4040    psMetadata *site;                   ///< Site configuration
    4141    psMetadata *system;                 ///< System configuration
    42     psMetadata *complete;               ///< Full merged configuration
    4342    psMetadata *camera;                 ///< Camera specification
    4443    psString cameraName;                ///< Camera name
     
    8685/// Read a configuration file
    8786///
    88 /// Read a metadata configuration file into the supplied metadata.  Produce an error and return false if
    89 /// there's a problem.
     87/// Read a metadata configuration file into the supplied metadata.  Produce an error and
     88/// return false if there's a problem.
    9089bool pmConfigFileRead(psMetadata **config, ///< Config to output
    9190                      const char *name, ///< Name of file
    9291                      const char *description ///< Description of file
    93                      );
     92    );
     93
     94/// Ingest a configuration file
     95///
     96/// Ingest a metadata configuration file into the supplied metadata item, if required.  Produce an error and
     97/// return false if there's a problem.
     98bool pmConfigFileIngest(psMetadataItem *item, // Item into which to read file
     99                        const char *description // Description, for error messages
     100    );
    94101
    95102/// Validate a header against the camera format
Note: See TracChangeset for help on using the changeset viewer.