IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2008, 2:53:45 PM (18 years ago)
Author:
eugene
Message:

defer construction of blank of concepts until element is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r18178 r18364  
    191191// Read all registered concepts for the specified level
    192192static bool conceptsRead(psMetadata **specs, // One of the concepts specifications
    193                          const pmFPA *fpa,    // The FPA
    194                          const pmChip *chip,  // The chip
    195                          const pmCell *cell, // The cell
     193                         pmFPA *fpa,    // The FPA
     194                         pmChip *chip,  // The chip
     195                         pmCell *cell, // The cell
    196196                         unsigned int *read,     // What's already been read
    197197                         pmConceptSource source, // The source of the concepts to read
     
    215215    }
    216216    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    }
    217230
    218231    bool success = true;                // Success in reading concepts?
Note: See TracChangeset for help on using the changeset viewer.