| Rev | Line |  | 
|---|
| [863] | 1 | // Guy Le Meur 04/2000 | 
|---|
|  | 2 |  | 
|---|
|  | 3 |  | 
|---|
|  | 4 | #ifndef FITSTARRAY_SEEN | 
|---|
|  | 5 | #define FITSTARRAY_SEEN | 
|---|
|  | 6 |  | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #include "pexceptions.h" | 
|---|
|  | 9 | #include "tarray.h" | 
|---|
|  | 10 | #include "fitsfile.h" | 
|---|
|  | 11 |  | 
|---|
|  | 12 | namespace SOPHYA { | 
|---|
|  | 13 |  | 
|---|
|  | 14 |  | 
|---|
|  | 15 | ///////////////////////////////////////////////////////////////////////// | 
|---|
|  | 16 | // Classe pour la gestion de persistance sur fichiers fits | 
|---|
|  | 17 | ///////////////////////////////////////////////////////////////////////// | 
|---|
|  | 18 |  | 
|---|
|  | 19 |  | 
|---|
|  | 20 |  | 
|---|
|  | 21 | template <class T> | 
|---|
|  | 22 | class FITS_TArray : public FitsFile { | 
|---|
|  | 23 |  | 
|---|
|  | 24 | public: | 
|---|
|  | 25 |  | 
|---|
|  | 26 | FITS_TArray(); | 
|---|
|  | 27 | FITS_TArray(char inputfile[],int hdunum=1); | 
|---|
|  | 28 | FITS_TArray(const TArray<T> & obj); | 
|---|
|  | 29 | FITS_TArray(TArray<T> *obj); | 
|---|
|  | 30 | virtual ~FITS_TArray(); | 
|---|
|  | 31 | virtual AnyDataObj* DataObj(); | 
|---|
|  | 32 | inline operator TArray<T>() { return(*dobj_); } | 
|---|
| [972] | 33 | void Write(char outputfile[], bool OldFile=false); | 
|---|
| [863] | 34 |  | 
|---|
|  | 35 | protected : | 
|---|
|  | 36 |  | 
|---|
| [972] | 37 | void ReadFromFits(FitsFile& fn); | 
|---|
|  | 38 | void WriteToFits(FitsFile& fn); | 
|---|
| [863] | 39 |  | 
|---|
|  | 40 | TArray<T> * dobj_; | 
|---|
|  | 41 | bool ownobj; | 
|---|
|  | 42 | }; | 
|---|
|  | 43 | ////////////////////////////////////////////////////////////////// | 
|---|
|  | 44 |  | 
|---|
|  | 45 |  | 
|---|
|  | 46 | } // Fin du namespace | 
|---|
|  | 47 |  | 
|---|
|  | 48 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.