IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 3:02:31 PM (20 years ago)
Author:
Paul Price
Message:

Renaming functions in pmConceptsRead.h and pmConceptsWrite.h to be private ("p_").
Adding const where appropriate, and changing order of parameters to match usual
convention (outputs go first).

File:
1 edited

Legend:

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

    r9539 r9570  
    2222// since the type is already known.
    2323static psMetadataItem *parsePlain(psMetadataItem *concept, // The concept to parse
    24                                   psMetadataItem *pattern // The concept pattern
     24                                  const psMetadataItem *pattern // The concept pattern
    2525                                 )
    2626{
     
    5555                         psMetadata *cameraFormat, // The camera format
    5656                         psMetadata *target, // The target
    57                          pmFPA *fpa,    // The FPA
    58                          pmChip *chip, // The chip
    59                          pmCell *cell  // The cell
     57                         const pmFPA *fpa, // The FPA
     58                         const pmChip *chip, // The chip
     59                         const pmCell *cell // The cell
    6060                        )
    6161{
     
    111111//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    112112
    113 bool pmConceptsReadFromCamera(psMetadata *specs, // The concept specifications
    114                               pmCell *cell,  // The cell
    115                               psMetadata *target // Place into which to read the concepts
    116                              )
     113bool p_pmConceptsReadFromCells(psMetadata *target, const psMetadata *specs, const pmCell *cell)
    117114{
    118115    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    172169
    173170
    174 bool pmConceptsReadFromDefaults(psMetadata *specs, // The concept specifications
    175                                 pmFPA *fpa, // The FPA
    176                                 pmChip *chip, // The chip
    177                                 pmCell *cell, // The cell
    178                                 psMetadata *target // Place into which to read the concepts
    179                                )
     171bool p_pmConceptsReadFromDefaults(psMetadata *target, const psMetadata *specs,
     172                                  const pmFPA *fpa, const pmChip *chip, const pmCell *cell)
    180173{
    181174    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    256249
    257250
    258 bool pmConceptsReadFromHeader(psMetadata *specs, // The concept specifications
    259                               pmFPA *fpa, // The FPA
    260                               pmChip *chip, // The chip
    261                               pmCell *cell,  // The cell
    262                               psMetadata *target // Place into which to read the concepts
    263                              )
     251bool p_pmConceptsReadFromHeader(psMetadata *target, const psMetadata *specs,
     252                                const pmFPA *fpa, const pmChip *chip, const pmCell *cell)
    264253{
    265254    PS_ASSERT_PTR_NON_NULL(specs, false);
     
    358347
    359348// XXX --- the below code has NOT been tested!
    360 bool pmConceptsReadFromDatabase(psMetadata *specs, // The concept specifications
    361                                 pmFPA *fpa, // The FPA
    362                                 pmChip *chip, // The chip
    363                                 pmCell *cell,  // The cell
    364                                 psDB *db, // The database handle
    365                                 psMetadata *target // Place into which to read the concepts
    366                                )
     349bool p_pmConceptsReadFromDatabase(psMetadata *target, const psMetadata *specs,
     350                                  const pmFPA *fpa, const pmChip *chip, const pmCell *cell, psDB *db)
    367351{
    368352    PS_ASSERT_PTR_NON_NULL(specs, false);
Note: See TracChangeset for help on using the changeset viewer.