Changeset 9572 for trunk/psModules/src/concepts/pmConceptsWrite.c
- Timestamp:
- Oct 13, 2006, 4:35:39 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsWrite.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsWrite.c
r9570 r9572 18 18 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 19 19 20 static bool compareConcepts( psMetadataItem *compare, // Item to compare21 psMetadataItem *standard // Standard for comparison20 static bool compareConcepts(const psMetadataItem *compare, // Item to compare 21 const psMetadataItem *standard // Standard for comparison 22 22 ) 23 23 { … … 105 105 106 106 // Format a single concept 107 static psMetadataItem *conceptFormat( pmConceptSpec *spec, // The concept specification108 psMetadataItem *concept, // The concept to parse109 psMetadata *cameraFormat, // The camera format110 pmFPA *fpa, // The FPA111 pmChip *chip, // The chip112 pmCell *cell // The cell107 static psMetadataItem *conceptFormat(const pmConceptSpec *spec, // The concept specification 108 const psMetadataItem *concept, // The concept to parse 109 const psMetadata *cameraFormat, // The camera format 110 const pmFPA *fpa, // The FPA 111 const pmChip *chip, // The chip 112 const pmCell *cell // The cell 113 113 ) 114 114 { … … 121 121 formatted = spec->format(concept, cameraFormat, fpa, chip, cell); 122 122 } else { 123 formatted = psMemIncrRefCounter( concept);123 formatted = psMemIncrRefCounter((const psPtr)concept); 124 124 } 125 125 … … 132 132 static bool writeSingleHeader(pmHDU *hdu, // HDU for which to add to the header 133 133 const char *keyword, // Keyword to add 134 psMetadataItem *item // Item to add to the header; may be NULL134 const psMetadataItem *item // Item to add to the header; may be NULL 135 135 ) 136 136 { … … 182 182 static bool writeHeader(pmHDU *hdu, // HDU for which to add to the header 183 183 const char *keywords, // Keywords to add 184 psMetadataItem *item // Item to add to the header184 const psMetadataItem *item // Item to add to the header 185 185 ) 186 186 { … … 220 220 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 221 221 222 bool p_pmConceptsWriteToCells(psMetadata *specs, // The concept specifications 223 pmCell *cell, // The cell 224 psMetadata *concepts // The concepts 225 ) 222 bool p_pmConceptsWriteToCells(const psMetadata *specs, const pmCell *cell, const psMetadata *concepts) 226 223 { 227 224 PS_ASSERT_PTR_NON_NULL(specs, false); … … 230 227 return false; 231 228 } 232 if (!cell->config) 233 return false; 229 if (!cell->config) { 230 return false; 231 } 234 232 235 233 pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level … … 291 289 } 292 290 293 bool p_pmConceptsWriteToDefaults(psMetadata *specs, // The concept specifications 294 pmFPA *fpa, // The FPA 295 pmChip *chip, // The chip 296 pmCell *cell, // The cell 297 psMetadata *concepts // The concepts 298 ) 291 bool p_pmConceptsWriteToDefaults(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip, 292 const pmCell *cell, psMetadata *concepts) 299 293 { 300 294 PS_ASSERT_PTR_NON_NULL(specs, false); … … 357 351 358 352 359 bool p_pmConceptsWriteToHeader(psMetadata *specs, // The concept specifications 360 pmFPA *fpa, // The FPA 361 pmChip *chip, // The chip 362 pmCell *cell, // The cell 363 psMetadata *concepts // The concepts 364 ) 353 bool p_pmConceptsWriteToHeader(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip, 354 const pmCell *cell, const psMetadata *concepts) 365 355 { 366 356 PS_ASSERT_PTR_NON_NULL(specs, false); … … 405 395 406 396 // XXX Warning: This code has not been tested at all 407 bool p_pmConceptsWriteToDatabase(psMetadata *specs, // The concept specifications 408 pmFPA *fpa, // The FPA 409 pmChip *chip, // The chip 410 pmCell *cell, // The cell 411 psDB *db,// The database handle 412 psMetadata *concepts // The concepts 413 ) 397 bool p_pmConceptsWriteToDatabase(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip, 398 const pmCell *cell, psDB *db, const psMetadata *concepts) 414 399 { 415 400 PS_ASSERT_PTR_NON_NULL(specs, false);
Note:
See TracChangeset
for help on using the changeset viewer.
