Changeset 18260
- Timestamp:
- Jun 20, 2008, 7:40:25 PM (18 years ago)
- Location:
- branches/eam_branch_20080620/psModules/src/concepts
- Files:
-
- 2 edited
-
pmConcepts.c (modified) (2 diffs)
-
pmConcepts.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080620/psModules/src/concepts/pmConcepts.c
r18178 r18260 191 191 // Read all registered concepts for the specified level 192 192 static bool conceptsRead(psMetadata **specs, // One of the concepts specifications 193 constpmFPA *fpa, // The FPA194 constpmChip *chip, // The chip195 constpmCell *cell, // The cell193 pmFPA *fpa, // The FPA 194 pmChip *chip, // The chip 195 pmCell *cell, // The cell 196 196 unsigned int *read, // What's already been read 197 197 pmConceptSource source, // The source of the concepts to read … … 215 215 } 216 216 pmHDU *hduHigh = pmHDUGetHighest(fpa, chip, cell); // Highest HDU 217 218 if (cell && (cell->conceptsRead == PM_CONCEPT_SOURCE_NONE)) { 219 pmConceptsBlankCell(cell); 220 cell->conceptsRead = PM_CONCEPT_SOURCE_BLANK; 221 } 222 if (chip && (chip->conceptsRead == PM_CONCEPT_SOURCE_NONE)) { 223 pmConceptsBlankChip(chip); 224 chip->conceptsRead = PM_CONCEPT_SOURCE_BLANK; 225 } 226 if (fpa && (fpa->conceptsRead == PM_CONCEPT_SOURCE_NONE)) { 227 pmConceptsBlankFPA(fpa); 228 fpa->conceptsRead = PM_CONCEPT_SOURCE_BLANK; 229 } 217 230 218 231 bool success = true; // Success in reading concepts? -
branches/eam_branch_20080620/psModules/src/concepts/pmConcepts.h
r18163 r18260 4 4 * @author Paul Price, IfA 5 5 * 6 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $7 * @date $Date: 2008-06- 17 22:16:38$6 * @version $Revision: 1.18.4.1 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-06-21 05:40:25 $ 8 8 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 24 24 typedef enum { 25 25 PM_CONCEPT_SOURCE_NONE = 0x00, ///< No concepts 26 PM_CONCEPT_SOURCE_CELLS = 0x01, ///< Concept comes from the camera information 27 PM_CONCEPT_SOURCE_DEFAULTS = 0x02, ///< Concept comes from defaults 28 PM_CONCEPT_SOURCE_PHU = 0x04, ///< Concept comes from PHU 29 PM_CONCEPT_SOURCE_HEADER = 0x08, ///< Concept comes from FITS header 30 PM_CONCEPT_SOURCE_DATABASE = 0x10, ///< Concept comes from database 31 PM_CONCEPT_SOURCE_ALL = 0xff ///< All concepts 26 PM_CONCEPT_SOURCE_BLANK = 0x01, ///< Blank concepts defined, but not read 27 PM_CONCEPT_SOURCE_CELLS = 0x02, ///< Concept comes from the camera information 28 PM_CONCEPT_SOURCE_DEFAULTS = 0x04, ///< Concept comes from defaults 29 PM_CONCEPT_SOURCE_PHU = 0x08, ///< Concept comes from PHU 30 PM_CONCEPT_SOURCE_HEADER = 0x10, ///< Concept comes from FITS header 31 PM_CONCEPT_SOURCE_DATABASE = 0x20, ///< Concept comes from database 32 PM_CONCEPT_SOURCE_ALL = 0xfe ///< All concepts (exclude BLANK) 32 33 } pmConceptSource; 33 34
Note:
See TracChangeset
for help on using the changeset viewer.
