Changeset 6575 for branches/rel10_ifa/psModules/src/astrom/pmConcepts.c
- Timestamp:
- Mar 13, 2006, 4:23:40 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmConcepts.c
r6570 r6575 83 83 pmConceptsInit(); 84 84 } 85 psMetadataIterator *specsIter = psMetadataIteratorAlloc( *specs, PS_LIST_HEAD, NULL); // Iterator on specs85 psMetadataIterator *specsIter = psMetadataIteratorAlloc(specs, PS_LIST_HEAD, NULL); // Iterator on specs 86 86 psMetadataItem *specItem = NULL; // Item from the specs metadata 87 87 while ((specItem = psMetadataGetAndIncrement(specsIter))) { … … 122 122 } 123 123 if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) { 124 pmConceptsReadFrom Header(specs, fpa, chip, cell, db, target);124 pmConceptsReadFromDatabase(specs, fpa, chip, cell, db, target); 125 125 } 126 126 … … 152 152 } 153 153 if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) { 154 pmConceptsWriteTo Header(specs, fpa, chip, cell, db, concepts);154 pmConceptsWriteToDatabase(specs, fpa, chip, cell, db, concepts); 155 155 } 156 156 … … 179 179 // Read the concepts for a given FPA 180 180 bool pmConceptsWriteFPA(pmFPA *fpa, // FPA for which to write concepts 181 pmConceptSource source, // The source of the concepts to read 181 182 psDB *db // Database handle 182 183 ) 183 184 { 184 185 psTrace("psModule.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts); 185 return conceptsWrite(conceptsFPA, fpa, NULL, NULL, db, fpa->concepts);186 return conceptsWrite(conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts); 186 187 } 187 188 … … 207 208 // Read the concepts for a given FPA 208 209 bool pmConceptsWriteChip(pmChip *chip, // Chip for which to write concepts 210 pmConceptSource source, // The source of the concepts to read 209 211 psDB *db // Database handle 210 212 ) … … 212 214 psTrace("psModule.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts); 213 215 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 214 return conceptsWrite(conceptsChip, fpa, chip, NULL, db, chip->concepts);216 return conceptsWrite(conceptsChip, fpa, chip, NULL, source, db, chip->concepts); 215 217 } 216 218 … … 237 239 // Read the concepts for a given FPA 238 240 bool pmConceptsWriteCell(pmCell *cell, // FPA for which to write concepts 241 pmConceptSource source, // The source of the concepts to read 239 242 psDB *db // Database handle 240 243 ) … … 243 246 pmChip *chip = cell->parent; // Chip to which the cell belongs 244 247 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 245 return conceptsWrite(conceptsCell, fpa, chip, cell, db, cell->concepts);248 return conceptsWrite(conceptsCell, fpa, chip, cell, source, db, cell->concepts); 246 249 } 247 250 … … 394 397 395 398 // CELL.DARKTIME 396 { Read399 { 397 400 psMetadataItem *cellDarktime = psMetadataItemAllocF32("CELL.DARKTIME", 398 401 "Time since flush (sec)", NAN); … … 428 431 psMetadataItem *cellXbin = psMetadataItemAllocS32("CELL.XBIN", "Binning in x", 0); 429 432 pmConceptRegister(cellXbin, (pmConceptParseFunc)pmConceptParse_CELL_Binning, 430 (pmConceptFormatFunc)pmConceptFormat_CELL_ Binning, PM_CONCEPT_LEVEL_CELL);433 (pmConceptFormatFunc)pmConceptFormat_CELL_XBIN, PM_CONCEPT_LEVEL_CELL); 431 434 psFree(cellXbin); 432 435 } … … 436 439 psMetadataItem *cellYbin = psMetadataItemAllocS32("CELL.YBIN", "Binning in y", 0); 437 440 pmConceptRegister(cellYbin, (pmConceptParseFunc)pmConceptParse_CELL_Binning, 438 (pmConceptFormatFunc)pmConceptFormat_CELL_ Binning, PM_CONCEPT_LEVEL_CELL);441 (pmConceptFormatFunc)pmConceptFormat_CELL_YBIN, PM_CONCEPT_LEVEL_CELL); 439 442 psFree(cellYbin); 440 443 }
Note:
See TracChangeset
for help on using the changeset viewer.
