IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 4:35:39 PM (20 years ago)
Author:
Paul Price
Message:

Adding const where appropriate. Adding doxygen documentation to header files. Removing comments on functions defined in the header file, so that there's only a single source.

File:
1 edited

Legend:

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

    r9570 r9572  
    1818//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    1919
    20 static bool compareConcepts(psMetadataItem *compare, // Item to compare
    21                             psMetadataItem *standard // Standard for comparison
     20static bool compareConcepts(const psMetadataItem *compare, // Item to compare
     21                            const psMetadataItem *standard // Standard for comparison
    2222                           )
    2323{
     
    105105
    106106// Format a single concept
    107 static psMetadataItem *conceptFormat(pmConceptSpec *spec, // The concept specification
    108                                      psMetadataItem *concept, // The concept to parse
    109                                      psMetadata *cameraFormat, // The camera format
    110                                      pmFPA *fpa, // The FPA
    111                                      pmChip *chip, // The chip
    112                                      pmCell *cell // The cell
     107static 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
    113113                                    )
    114114{
     
    121121            formatted = spec->format(concept, cameraFormat, fpa, chip, cell);
    122122        } else {
    123             formatted = psMemIncrRefCounter(concept);
     123            formatted = psMemIncrRefCounter((const psPtr)concept);
    124124        }
    125125
     
    132132static bool writeSingleHeader(pmHDU *hdu, // HDU for which to add to the header
    133133                              const char *keyword, // Keyword to add
    134                               psMetadataItem *item // Item to add to the header; may be NULL
     134                              const psMetadataItem *item // Item to add to the header; may be NULL
    135135                             )
    136136{
     
    182182static bool writeHeader(pmHDU *hdu,     // HDU for which to add to the header
    183183                        const char *keywords, // Keywords to add
    184                         psMetadataItem *item // Item to add to the header
     184                        const psMetadataItem *item // Item to add to the header
    185185                       )
    186186{
     
    220220//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    221221
    222 bool p_pmConceptsWriteToCells(psMetadata *specs, // The concept specifications
    223                               pmCell *cell,   // The cell
    224                               psMetadata *concepts // The concepts
    225                              )
     222bool p_pmConceptsWriteToCells(const psMetadata *specs, const pmCell *cell, const psMetadata *concepts)
    226223{
    227224    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    230227        return false;
    231228    }
    232     if (!cell->config)
    233         return false;
     229    if (!cell->config) {
     230        return false;
     231    }
    234232
    235233    pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level
     
    291289}
    292290
    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                                 )
     291bool p_pmConceptsWriteToDefaults(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip,
     292                                 const pmCell *cell, psMetadata *concepts)
    299293{
    300294    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    357351
    358352
    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                               )
     353bool p_pmConceptsWriteToHeader(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip,
     354                               const pmCell *cell, const psMetadata *concepts)
    365355{
    366356    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    405395
    406396// 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                                 )
     397bool p_pmConceptsWriteToDatabase(const psMetadata *specs, const pmFPA *fpa, const pmChip *chip,
     398                                 const pmCell *cell, psDB *db, const psMetadata *concepts)
    414399{
    415400    PS_ASSERT_PTR_NON_NULL(specs, false);
Note: See TracChangeset for help on using the changeset viewer.