IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2009, 11:45:11 AM (17 years ago)
Author:
Paul Price
Message:

Noticed that the TIMESYS wouldn't necessarily be updated just because we alter it in the format process for a TIME. To remedy this, force it to be written after updating. Reworked the concepts writing so that conceptsWrite() provides the iteration, while the other functions write a single entry only. This allows a new function, pmConceptWriteSingle(), which is used to update the TIMESYS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsWrite.h

    r22699 r23428  
    2020/// @{
    2121
    22 /// "Write" concepts to (actually, check against) the camera format file's CELLS.
     22/// "Write" concept to (actually, check against) the camera format file's CELLS.
    2323///
    2424/// Examines the CELLS metadata in the camera format file for the current type of cell, and checks that the
    25 /// concepts as defined there match the ones defined in the cell.  A warning is produced if the concepts do
     25/// concept as defined there match the ones defined in the cell.  A warning is produced if the concept does
    2626/// not match.
    27 bool p_pmConceptsWriteToCells(const psMetadata *specs, ///< The concept specifications
     27bool p_pmConceptWriteToCells(const pmCell *cell, ///< The cell
     28                             const pmConceptSpec *spec, ///< Concept specification
     29                             const psMetadataItem *conceptItem, ///< Concept to write
     30                             const psMetadata *format ///< Camera format, or NULL
     31    );
     32
     33/// "Write" concept to (actually, check against) the camera format file's DEFAULTS.
     34///
     35/// Examines the DEFAULTS metadata in the camera format file, and checks that the concept as defined there
     36/// match the one defined in the cell.  A warning is produced if the concept does not match.
     37bool p_pmConceptWriteToDefaults(const pmFPA *fpa, ///< The FPA
     38                                const pmChip *chip, ///< The chip
     39                                const pmCell *cell, ///< The cell
     40                                const pmConceptSpec *spec, ///< Concept specification
     41                                const psMetadataItem *conceptItem,      ///< Concept to write
     42                                const psMetadata *format, ///< Camera format, or NULL
     43                                const psMetadata *defaults ///< DEFAULTS configuration, or NULL
     44    );
     45
     46/// "Write" concept to (actually, add to, pending a later write) the FITS header.
     47///
     48/// Examines the FITS header TRANSLATION metadata in the camera format file, and writes concept to the
     49/// appropriate FITS header(s) in the HDU, in preparation for a future write of the HDU.
     50bool p_pmConceptWriteToHeader(const pmFPA *fpa, ///< The FPA
     51                              const pmChip *chip, ///< The chip
    2852                              const pmCell *cell, ///< The cell
    29                               const psMetadata *concepts ///< The concepts
    30                              );
     53                              const pmConceptSpec *spec, ///< Concept specification
     54                              const psMetadataItem *conceptItem, ///< Concept to write
     55                              const psMetadata *format, ///< Camera format, or NULL
     56                              const psMetadata *translation ///< TRANSLATION configuration, or NULL
     57                              );
    3158
    32 /// "Write" concepts to (actually, check against) the camera format file's DEFAULTS.
     59/// Write concept to the database.
    3360///
    34 /// Examines the DEFAULTS metadata in the camera format file, and checks that the concepts as defined there
    35 /// match the ones defined in the cell.  A warning is produced if the concepts do not match.
    36 bool p_pmConceptsWriteToDefaults(const psMetadata *specs, ///< The concept specifications
    37                                  const pmFPA *fpa, ///< The FPA
    38                                  const pmChip *chip, ///< The chip
    39                                  const pmCell *cell, ///< The cell
    40                                  const psMetadata *concepts ///< The concepts
     61/// Examines the DATABASE metadata in the camera format file, and writes (actually, check against)
     62/// concept to the database.
     63bool p_pmConceptWriteToDatabase(const pmFPA *fpa, ///< The FPA
     64                                const pmChip *chip, ///< The chip
     65                                const pmCell *cell, ///< The cell
     66                                pmConfig *config, ///< Configuration
     67                                const pmConceptSpec *spec, ///< Concept specification
     68                                const psMetadataItem *conceptItem, ///< Concept to write
     69                                const psMetadata *format, ///< Camera format, or NULL
     70                                const psMetadata *database ///< DATABASE configuration, or NULL
    4171                                );
    4272
    43 /// "Write" concepts to (actually, add to, pending a later write) the FITS header.
    44 ///
    45 /// Examines the FITS header TRANSLATION metadata in the camera format file, and writes concepts to the
    46 /// appropriate FITS headers in the HDU, in preparation for a future write of the HDU.
    47 bool p_pmConceptsWriteToHeader(const psMetadata *specs, ///< The concept specifications
    48                                const pmFPA *fpa, ///< The FPA
    49                                const pmChip *chip, ///< The chip
    50                                const pmCell *cell, ///< The cell
    51                                const psMetadata *concepts ///< The concepts
    52                               );
    5373
    54 /// Write concepts to the database.
    55 ///
    56 /// Examines the DATABASE metadata in the camera format file, and writes concepts to the database.
    57 /// Warning: This function has not been tested; use at your own risk.
    58 bool p_pmConceptsWriteToDatabase(const psMetadata *specs, ///< The concept specifications
    59                                  const pmFPA *fpa, ///< The FPA
    60                                  const pmChip *chip, ///< The chip
    61                                  const pmCell *cell, ///< The cell
    62                                  pmConfig *config,///< Configuration
    63                                  const psMetadata *concepts ///< The concepts
    64                                 );
     74bool pmConceptWriteSingle(const pmFPA *fpa, ///< The FPA
     75                          const pmChip *chip, ///< The chip
     76                          const pmCell *cell, ///< The cell
     77                          pmConfig *config, ///< Configuration
     78                          const psMetadataItem *concept ///< Concept to write
     79    );
    6580
    6681
     
    7085/// written for all lower levels by iterating over the components.
    7186bool pmConceptsWriteFPA(const pmFPA *fpa,     ///< FPA for which to write concepts
    72                         pmConceptSource source, ///< Source for concepts
    7387                        bool propagateDown, ///< Propagate to lower levels?
    7488                        pmConfig *config        ///< Configuration
     
    8094/// written for the FPA, and the cell level by iterating over the components.
    8195bool pmConceptsWriteChip(const pmChip *chip,  ///< Chip for which to write concepts
    82                          pmConceptSource source, ///< Source for concepts
    8396                         bool propagateUp,///< Propagate to higher levels?
    8497                         bool propagateDown, ///< Propagate to lower levels?
     
    92105/// only the parent of this cell).
    93106bool pmConceptsWriteCell(const pmCell *cell,  ///< FPA for which to write concepts
    94                          pmConceptSource source, ///< Source for concepts
    95107                         bool propagateUp, ///< Propagate to higher levels?
    96108                         pmConfig *config ///< Configuration
Note: See TracChangeset for help on using the changeset viewer.