IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2008, 12:16:38 PM (18 years ago)
Author:
Paul Price
Message:

Changing use of psDB* to pmConfig* so that the database handle only has to be set up when required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.h

    r18137 r18163  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-06-14 02:15:05 $
     6 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-06-17 22:16:38 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    1111#ifndef PM_FPA_READ_H
    1212#define PM_FPA_READ_H
     13
     14#include <pmConfig.h>
    1315
    1416/// @addtogroup Camera Camera Layout
     
    2022                   int z,               ///< Readout number/plane; zero-offset indexing
    2123                   int numScans,        ///< Number of scans (rows/cols) to read
    22                    psDB *db             ///< Database handle for concepts
     24                   pmConfig *config     ///< Configuration
    2325    );
    2426
     
    3133                        int numScans,   ///< Number of scans (rows/cols) to read
    3234                        int overlap,    ///< Overlap between consecutive reads
    33                         psDB *db        ///< Database handle for concepts
     35                        pmConfig *config ///< Configuration
    3436    );
    3537
     
    3840                   psFits *fits,        ///< FITS file from which to read
    3941                   int z,               ///< Readout number/plane; zero-offset indexing
    40                    psDB *db             ///< Database handle for concepts
     42                   pmConfig *config     ///< Configuration
    4143    );
    4244
     
    5759                       int z,           // Readout number/plane; zero-offset indexing
    5860                       int numRows,      // The number of rows to read
    59                        psDB *db
     61                       pmConfig *config
    6062                      );
    6163
     
    6365///
    6466/// This function is type-independent (doesn't matter if you are interested in the image/mask/weight).
    65 int pmCellNumReadouts(pmCell *cell, psFits *fits, psDB *db);
     67int pmCellNumReadouts(pmCell *cell, psFits *fits, pmConfig *config);
    6668
    6769/// Read an entire cell
     
    7173bool pmCellRead(pmCell *cell,           // Cell to read into
    7274                psFits *fits,           // FITS file from which to read
    73                 psDB *db                // Database handle, for "concepts" ingest
     75                pmConfig *config        // Configuration
    7476               );
    7577
     
    7981bool pmChipRead(pmChip *chip,           // Chip to read into
    8082                psFits *fits,           // FITS file from which to read
    81                 psDB *db                // Database handle, for "concepts" ingest
     83                pmConfig *config        // Configuration
    8284               );
    8385
     
    8789bool pmFPARead(pmFPA *fpa,              // FPA to read into
    8890               psFits *fits,            // FITS file from which to read
    89                psDB *db                 // Database handle, for "concepts" ingest
     91               pmConfig *config         // Configuration
    9092              );
    9193
     
    9799                       int z,           ///< Readout number/plane; zero-offset indexing
    98100                       int numScans,    ///< Number of scans (rows/cols) to read
    99                        psDB *db         ///< Database handle for concepts
     101                       pmConfig *config ///< Configuration
    100102    );
    101103
     
    108110                            int numScans, ///< Number of scans (rows/cols) to read
    109111                            int overlap, ///< Overlap between consecutive reads
    110                             psDB *db    ///< Database handle for concepts
     112                            pmConfig *config ///< Configuration
    111113    );
    112114
     
    115117                       psFits *fits,    ///< FITS file from which to read
    116118                       int z,           ///< Readout number/plane; zero-offset indexing
    117                        psDB *db         ///< Database handle for concepts
     119                       pmConfig *config ///< Configuration
    118120    );
    119121
     
    123125bool pmCellReadMask(pmCell *cell,       // Cell to read into
    124126                    psFits *fits,       // FITS file from which to read
    125                     psDB *db            // Database handle, for "concepts" ingest
     127                    pmConfig *config    // Configuration
    126128                   );
    127129
     
    131133bool pmChipReadMask(pmChip *chip,       // Chip to read into
    132134                    psFits *fits,       // FITS file from which to read
    133                     psDB *db            // Database handle, for "concepts" ingest
     135                    pmConfig *config    // Configuration
    134136                   );
    135137
     
    139141bool pmFPAReadMask(pmFPA *fpa,          // FPA to read into
    140142                   psFits *fits,        // FITS file from which to read
    141                    psDB *db             // Database handle, for "concepts" ingest
     143                   pmConfig *config     // Configuration
    142144                  );
    143145
     
    149151                         int z,         ///< Readout number/plane; zero-offset indexing
    150152                         int numScans,  ///< Number of scans (rows/cols) to read
    151                          psDB *db       ///< Database handle for concepts
     153                         pmConfig *config ///< Configuration
    152154    );
    153155
     
    160162                              int numScans, ///< Number of scans (rows/cols) to read
    161163                              int overlap, ///< Overlap between consecutive reads
    162                               psDB *db  ///< Database handle for concepts
     164                              pmConfig *config ///< Configuration
    163165    );
    164166
     
    167169                         psFits *fits,  ///< FITS file from which to read
    168170                         int z,         ///< Readout number/plane; zero-offset indexing
    169                          psDB *db       ///< Database handle for concepts
     171                         pmConfig *config ///< Configuration
    170172    );
    171173
     
    173175///
    174176/// Same as pmCellRead, but reads into the weight element of the readouts.
    175 bool pmCellReadWeight(pmCell *cell,           // Cell to read into
    176                       psFits *fits,           // FITS file from which to read
    177                       psDB *db                // Database handle, for "concepts" ingest
     177bool pmCellReadWeight(pmCell *cell,     // Cell to read into
     178                      psFits *fits,     // FITS file from which to read
     179                      pmConfig *config  // Configuration
    178180                     );
    179181
     
    181183///
    182184/// Same as pmChipRead, but reads into the weight element of the readouts.
    183 bool pmChipReadWeight(pmChip *chip,           // Chip to read into
    184                       psFits *fits,           // FITS file from which to read
    185                       psDB *db                // Database handle, for "concepts" ingest
     185bool pmChipReadWeight(pmChip *chip,     // Chip to read into
     186                      psFits *fits,     // FITS file from which to read
     187                      pmConfig *config  // Configuration
    186188                     );
    187189
     
    189191///
    190192/// Same as pmFPARead, but reads into the weight element of the readouts.
    191 bool pmFPAReadWeight(pmFPA *fpa,              // FPA to read into
    192                      psFits *fits,            // FITS file from which to read
    193                      psDB *db                 // Database handle, for "concepts" ingest
     193bool pmFPAReadWeight(pmFPA *fpa,        // FPA to read into
     194                     psFits *fits,      // FITS file from which to read
     195                     pmConfig *config   // Configuration
    194196                    );
    195197
     
    197199///
    198200/// Same as pmCellRead, but reads only the headers of the readouts.
    199 bool pmCellReadHeaderSet(pmCell *cell,           // Cell to read into
    200                          psFits *fits,           // FITS file from which to read
    201                          psDB *db                // Database handle, for "concepts" ingest
     201bool pmCellReadHeaderSet(pmCell *cell,  // Cell to read into
     202                         psFits *fits,  // FITS file from which to read
     203                         pmConfig *config // Configuration
    202204    );
    203205
     
    205207///
    206208/// Same as pmChipRead, but reads only the headers of the readouts.
    207 bool pmChipReadHeaderSet(pmChip *chip,           // Chip to read into
    208                       psFits *fits,           // FITS file from which to read
    209                       psDB *db                // Database handle, for "concepts" ingest
     209bool pmChipReadHeaderSet(pmChip *chip,  // Chip to read into
     210                      psFits *fits,     // FITS file from which to read
     211                      pmConfig *config  // Configuration
    210212                     );
    211213
     
    213215///
    214216/// Same as pmFPARead, but reads only the headers of the readouts.
    215 bool pmFPAReadHeaderSet(pmFPA *fpa,              // FPA to read into
    216                         psFits *fits,            // FITS file from which to read
    217                         psDB *db                 // Database handle, for "concepts" ingest
     217bool pmFPAReadHeaderSet(pmFPA *fpa,     // FPA to read into
     218                        psFits *fits,   // FITS file from which to read
     219                        pmConfig *config // Configuration
    218220    );
    219221
Note: See TracChangeset for help on using the changeset viewer.