IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18136


Ignore:
Timestamp:
Jun 13, 2008, 3:52:05 PM (18 years ago)
Author:
eugene
Message:

adding elements to APIs to pass the db handle around

Location:
branches/eam_branch_20080613/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080613/psModules/src/camera/pmFPAHeader.c

    r18031 r18136  
    1717//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    1818
    19 bool pmCellReadHeader(pmCell *cell, psFits *fits)
     19bool pmCellReadHeader(pmCell *cell, psFits *fits, pmConfig *config)
    2020{
    2121    PS_ASSERT_PTR_NON_NULL(cell, false);
     
    3030    }
    3131
    32     return pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, false, NULL);
     32    return pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, false, config->database);
    3333}
    3434
    3535
    36 bool pmChipReadHeader(pmChip *chip, psFits *fits)
     36bool pmChipReadHeader(pmChip *chip, psFits *fits, pmConfig *config)
    3737{
    3838    PS_ASSERT_PTR_NON_NULL(chip, false);
     
    4747    }
    4848
    49     if (!pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, true, true, NULL)) {
     49    if (!pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, true, true, config->database)) {
    5050        psError(PS_ERR_UNKNOWN, false, "Unable to read concepts for chip.\n");
    5151        return false;
     
    5656
    5757
    58 bool pmFPAReadHeader(pmFPA *fpa, psFits *fits)
     58bool pmFPAReadHeader(pmFPA *fpa, psFits *fits, pmConfig *config)
    5959{
    6060    PS_ASSERT_PTR_NON_NULL(fpa, false);
     
    6969    }
    7070
    71     if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, true, NULL)) {
     71    if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_DATABASE, true, config->database)) {
    7272        psError(PS_ERR_UNKNOWN, false, "Unable to read concepts for FPA.\n");
    7373        return false;
  • branches/eam_branch_20080613/psModules/src/camera/pmFPAHeader.h

    r11253 r18136  
    44 *  @author Paul Price, IfA
    55 *
    6  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-01-24 02:54:14 $
     6 *  @version $Revision: 1.3.42.1 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-06-14 01:52:05 $
    88 *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    2020/// was already there.  No iteration to lower levels is performed.
    2121bool pmFPAReadHeader(pmFPA *fpa,        ///< FPA for which to read header
    22                      psFits *fits       ///< FITS file handle
     22                     psFits *fits,       ///< FITS file handle
     23                     pmConfig *config
    2324                    );
    2425
     
    2829/// was already there.  No iteration to lower levels is performed.
    2930bool pmChipReadHeader(pmChip *chip,     ///< Chip for which to read header
    30                       psFits *fits      ///< FITS file handle
     31                      psFits *fits,      ///< FITS file handle
     32                     pmConfig *config
    3133                     );
    3234
     
    3638/// was already there.  No iteration to lower levels is performed.
    3739bool pmCellReadHeader(pmCell *cell,     ///< Cell for which to read header
    38                       psFits *fits      ///< FITS file handle
     40                      psFits *fits,      ///< FITS file handle
     41                     pmConfig *config
    3942                     );
    4043/// @}
Note: See TracChangeset for help on using the changeset viewer.