Changeset 11749 for trunk/psModules/src/concepts/pmConceptsRead.c
- Timestamp:
- Feb 12, 2007, 12:22:15 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsRead.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsRead.c
r11404 r11749 53 53 static bool conceptParse(pmConceptSpec *spec, // The concept specification 54 54 psMetadataItem *concept, // The concept to parse 55 pmConceptSource source, // The concept source 55 56 psMetadata *cameraFormat, // The camera format 56 57 psMetadata *target, // The target … … 71 72 psMetadataItem *parsed = NULL; // The parsed concept 72 73 if (spec->parse) { 73 parsed = spec->parse(concept, spec->blank, cameraFormat, fpa, chip, cell);74 parsed = spec->parse(concept, spec->blank, source, cameraFormat, fpa, chip, cell); 74 75 } else { 75 76 parsed = parsePlain(concept, spec->blank); … … 144 145 psString source = psMetadataLookupStr(&mdok, cell->config, nameSource); // The source 145 146 psFree(nameSource); 146 if (mdok && strlen(source) > 0 && strcasecmp(source, "VALUE") == 0) { 147 if (!conceptParse(spec, conceptItem, cameraFormat, target, NULL, NULL, cell)) { 147 if (mdok && source && strlen(source) > 0 && strcasecmp(source, "VALUE") == 0) { 148 if (!conceptParse(spec, conceptItem, PM_CONCEPT_SOURCE_CELLS, 149 cameraFormat, target, NULL, NULL, cell)) { 148 150 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from camera " 149 151 "configuration\n", name); … … 158 160 } else { 159 161 // Another type --- should be OK 160 if (!conceptParse(spec, conceptItem, cameraFormat, target, NULL, NULL, cell)) { 162 if (!conceptParse(spec, conceptItem, PM_CONCEPT_SOURCE_CELLS, 163 cameraFormat, target, NULL, NULL, cell)) { 161 164 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from camera " 162 165 "configuration.\n", name); … … 241 244 // Now we can parse this as we would ordinarily 242 245 } 243 if (conceptItem && !conceptParse(spec, conceptItem, cameraFormat, target, fpa, chip, cell)) { 246 if (conceptItem && !conceptParse(spec, conceptItem, PM_CONCEPT_SOURCE_DEFAULTS, 247 cameraFormat, target, fpa, chip, cell)) { 244 248 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from DEFAULTS.\n", name); 245 249 status = false; … … 340 344 // This will also clean up the name 341 345 if (headerItem) { 342 if (!conceptParse(spec, headerItem, cameraFormat, target, fpa, chip, cell)) { 346 if (!conceptParse(spec, headerItem, PM_CONCEPT_SOURCE_HEADER, 347 cameraFormat, target, fpa, chip, cell)) { 343 348 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from header.\n", name); 344 349 status = false; … … 459 464 460 465 // Now we have the result 461 if (!conceptParse(spec, conceptItem, cameraFormat, target, fpa, chip, cell)) { 466 if (!conceptParse(spec, conceptItem, PM_CONCEPT_SOURCE_DATABASE, 467 cameraFormat, target, fpa, chip, cell)) { 462 468 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from database.\n", 463 469 name);
Note:
See TracChangeset
for help on using the changeset viewer.
