Changeset 23623 for trunk/psModules/src/concepts/pmConceptsWrite.c
- Timestamp:
- Mar 30, 2009, 9:46:55 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsWrite.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsWrite.c
r23587 r23623 62 62 while ((cItem = psListGetAndIncrement(cIter))) { 63 63 if (cItem->type != PS_DATA_STRING) { 64 psWarning("psMetadataItem from list is of type %x instead of %x (PS_DATA_STRING) --- can't interpret.\n", cItem->type, PS_DATA_STRING);64 psWarning("psMetadataItem from list is of type %x instead of %x (PS_DATA_STRING) --- can't interpret.\n", cItem->type, PS_DATA_STRING); 65 65 psFree(cIter); 66 66 psFree(sIter); … … 606 606 for (long i = 0; i < chips->n; i++) { 607 607 pmChip *chip = chips->data[i]; // Chip of interest 608 if (chip && !chip->hdu) {608 if (chip) { 609 609 success &= pmConceptsWriteChip(chip, false, true, config); 610 610 } … … 622 622 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 623 623 bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, config, chip->concepts); 624 if (propagateUp && !fpa->hdu) {624 if (propagateUp) { 625 625 psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications 626 626 success &= conceptsWrite(&conceptsFPA, fpa, chip, NULL, config, fpa->concepts); … … 630 630 for (long i = 0; i < cells->n; i++) { 631 631 pmCell *cell = cells->data[i]; // Cell of interest 632 if (cell && !cell->hdu) {632 if (cell) { 633 633 success &= pmConceptsWriteCell(cell, false, config); 634 634 } … … 649 649 bool success = conceptsWrite(&conceptsCell, fpa, chip, cell, config, cell->concepts); 650 650 if (propagateUp) { 651 if (!chip->hdu) { 652 psMetadata *conceptsChip = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 653 success &= conceptsWrite(&conceptsChip, fpa, chip, cell, config, chip->concepts); 654 if (!fpa->hdu) { 655 psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications 656 success &= conceptsWrite(&conceptsFPA, fpa, chip, cell, config, fpa->concepts); 657 } 658 } 651 psMetadata *conceptsChip = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications 652 success &= conceptsWrite(&conceptsChip, fpa, chip, cell, config, chip->concepts); 653 psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications 654 success &= conceptsWrite(&conceptsFPA, fpa, chip, cell, config, fpa->concepts); 659 655 } 660 656
Note:
See TracChangeset
for help on using the changeset viewer.
