IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2009, 2:45:31 PM (17 years ago)
Author:
Paul Price
Message:

Reorganised the concepts files, moving the Write functions into pmConceptsWrite, and the Read functions into pmConceptsRead, which sort of makes sense. Added new type of concept property: copy. Most concepts use the default copy method (which is to simply copy the item), but for the TIMESYS concepts, we want to ensure that the target is of the correct type --- if it's already set (e.g., via the DEFAULTS), then we don't copy it. This will allow us to set the target TIMESYS using the DEFAULTS in the camera format, and have the output time be adjusted appropriately. Without this, the TIMESYS is simply copied, and specifying the TIMESYS in the DEFAULTS results in a warning ('values don't match'). Removed pmFPACopyConcepts, since it is pretty much the same as pmConceptsCopyFPA.

File:
1 edited

Legend:

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

    r18163 r22699  
    1111#ifndef PM_CONCEPTS_READ_H
    1212#define PM_CONCEPTS_READ_H
     13
     14#include <pslib.h>
     15#include <pmFPA.h>
     16#include <pmConfig.h>
     17#include <pmConcepts.h>
    1318
    1419/// Read concepts from the camera format file's CELLS.
     
    7984                                  pmConfig *config // Configuration
    8085                                 );
     86
     87/// Read the concepts for the given set of fpa, chip, cell
     88///
     89/// Attempts to read as many concepts as possible from the specified source for the specified FPA, chip and
     90/// cell.  That is, it will read chip- and cell-level concepts in addition to fpa-level concepts, if the chip
     91/// and cell are provided.
     92bool pmConceptsRead(pmFPA *fpa,         ///< FPA for which to read concepts
     93                    pmChip *chip,       ///< Chip for which to read concepts, or NULL
     94                    pmCell *cell,       ///< Cell for which to read concepts, or NULL
     95                    pmConceptSource source, ///< The source of the concepts to read
     96                    pmConfig *config    ///< Configuration
     97                   );
     98
     99/// Read concepts for an FPA; optionally, read concepts at all lower levels.
     100///
     101/// Once concepts should be available for reading at the FPA-level, this function attempts to read the
     102/// concepts from the specified source.  It also allows concepts to be read at lower levels by iterating over
     103/// the components.
     104bool pmConceptsReadFPA(pmFPA *fpa,      ///< FPA for which to read concepts
     105                       pmConceptSource source, ///< Source for concepts
     106                       bool propagateDown, ///< Propagate to lower levels?
     107                       pmConfig *config         ///< Configuration
     108                      );
     109
     110/// Read concepts for a chip; optionally, read concepts at the FPA and cell levels.
     111///
     112/// Once concepts should be available for reading at the FPA-level, this function attempts to read the
     113/// concepts from the specified source.  It also allows concepts to be read at the fpa level (through the
     114/// parent), and the cell level by iterating over the components.
     115bool pmConceptsReadChip(pmChip *chip,   ///< Chip for which to read concepts
     116                        pmConceptSource source, ///< Source for concepts
     117                        bool propagateUp, ///< Propagate to higher levels?
     118                        bool propagateDown, ///< Propagate to lower levels?
     119                        pmConfig *config        ///< Configuration
     120                       );
     121
     122/// Read concepts for a cell; optionally, read concepts for the parents.
     123///
     124/// Once concepts should be available for reading at the FPA-level, this function attempts to read the
     125/// concepts from the specified source.  It also allows concepts to be read at upper levels through the
     126/// parents (note, it would not read concepts for all chips, but only the parent of this cell).
     127bool pmConceptsReadCell(pmCell *cell,   ///< Cell for which to read concepts
     128                        pmConceptSource source, ///< Source for concepts
     129                        bool propagateUp, ///< Propagate to higher levels?
     130                        pmConfig *config        ///< Configuration
     131                       );
     132
    81133/// @}
    82134#endif
Note: See TracChangeset for help on using the changeset viewer.