| Rev | Line |  | 
|---|
| [1301] | 1 | #ifndef FITSAUTOREADER_SEEN | 
|---|
|  | 2 | #define FITSAUTOREADER_SEEN | 
|---|
|  | 3 |  | 
|---|
|  | 4 |  | 
|---|
|  | 5 | // Guy Le Meur 11/2000 | 
|---|
|  | 6 |  | 
|---|
|  | 7 | #include "machdefs.h" | 
|---|
|  | 8 | #include "anydataobj.h" | 
|---|
|  | 9 | #include "fitsfile.h" | 
|---|
|  | 10 | #include "fitstarray.h" | 
|---|
|  | 11 | #include "fitsspherehealpix.h" | 
|---|
|  | 12 | #include "fitsntuple.h" | 
|---|
|  | 13 | #include "fitsxntuple.h" | 
|---|
|  | 14 | #include "fitslocalmap.h" | 
|---|
|  | 15 |  | 
|---|
|  | 16 | namespace SOPHYA { | 
|---|
|  | 17 | /////////////////////////////////////////////////////////////////////// | 
|---|
|  | 18 | // ------------- Classe pour la gestion de persistance I/O format fits-- | 
|---|
|  | 19 | // des objets | 
|---|
|  | 20 | ////////////////////////////////////////////////////////////////////// | 
|---|
|  | 21 |  | 
|---|
|  | 22 |  | 
|---|
|  | 23 | class FITS_AutoReader | 
|---|
|  | 24 | { | 
|---|
|  | 25 | public: | 
|---|
|  | 26 |  | 
|---|
|  | 27 | FITS_AutoReader(); | 
|---|
|  | 28 | FITS_AutoReader(const char inputfile[]); | 
|---|
|  | 29 | FITS_AutoReader(string const & inputfile); | 
|---|
|  | 30 | virtual ~FITS_AutoReader(); | 
|---|
| [1334] | 31 | int NbBlocks(); | 
|---|
|  | 32 | AnyDataObj* ReadObject(int hdunum) const; | 
|---|
| [1301] | 33 |  | 
|---|
|  | 34 |  | 
|---|
|  | 35 | private : | 
|---|
|  | 36 |  | 
|---|
|  | 37 | AnyDataObj* newTArray() const; | 
|---|
|  | 38 | AnyDataObj* newSphereHEALPix() const; | 
|---|
|  | 39 | AnyDataObj* newLocalMap() const; | 
|---|
|  | 40 | NTuple* newNTuple() const; | 
|---|
|  | 41 | XNTuple* newXNTuple() const; | 
|---|
|  | 42 | inline void InitNull() | 
|---|
|  | 43 | { | 
|---|
|  | 44 | inFits_ = NULL; | 
|---|
|  | 45 | dobj_ = NULL; | 
|---|
|  | 46 | ownobj_ = false; | 
|---|
|  | 47 | } | 
|---|
|  | 48 |  | 
|---|
|  | 49 | FitsInFile* inFits_; | 
|---|
|  | 50 | AnyDataObj* dobj_; | 
|---|
|  | 51 | bool ownobj_; | 
|---|
|  | 52 |  | 
|---|
|  | 53 | }; | 
|---|
|  | 54 | } // Fin du namespace | 
|---|
|  | 55 |  | 
|---|
|  | 56 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.