| Line |  | 
|---|
| 1 | // Guy Le Meur 03/2000 | 
|---|
| 2 |  | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef FITSXNTuple_SEEN | 
|---|
| 5 | #define FITSXNTuple_SEEN | 
|---|
| 6 | #include "xntuple.h" | 
|---|
| 7 | #include "anydataobj.h" | 
|---|
| 8 | #include "ppersist.h" | 
|---|
| 9 | #include "fitsfile.h" | 
|---|
| 10 |  | 
|---|
| 11 | namespace SOPHYA { | 
|---|
| 12 | /////////////////////////////////////////////////////////// | 
|---|
| 13 | //   Les objets delegues pour la gestion de persistance sur fichiers fits | 
|---|
| 14 | //   pour XNTuple | 
|---|
| 15 | /////////////////////////////////////////////////////////// | 
|---|
| 16 |  | 
|---|
| 17 | class  FITS_XNTuple : public FitsFile | 
|---|
| 18 | { | 
|---|
| 19 |  | 
|---|
| 20 | public: | 
|---|
| 21 | FITS_XNTuple(); | 
|---|
| 22 | FITS_XNTuple(char inputfile[],int hdunum=2); | 
|---|
| 23 | FITS_XNTuple(const XNTuple & obj); | 
|---|
| 24 | ~FITS_XNTuple(); | 
|---|
| 25 | void Write(char outputfile[], bool OldFile=false); | 
|---|
| 26 | inline operator XNTuple() { return(*dobj_); } | 
|---|
| 27 |  | 
|---|
| 28 | protected: | 
|---|
| 29 |  | 
|---|
| 30 | // implementation de FitsFile | 
|---|
| 31 | virtual void  ReadFromFits(FitsFile& fn); | 
|---|
| 32 | virtual void    WriteToFits(FitsFile& fn); | 
|---|
| 33 | void*   getColFromObj(int colNr); | 
|---|
| 34 | double* getColDFromObj(int colNr); | 
|---|
| 35 | float*  getColFFromObj(int colNr); | 
|---|
| 36 | int*    getColIFromObj(int colNr); | 
|---|
| 37 | char**  getColSFromObj(int colNr); | 
|---|
| 38 |  | 
|---|
| 39 | // attributs de classe | 
|---|
| 40 | XNTuple* dobj_; | 
|---|
| 41 | bool    ownobj; | 
|---|
| 42 | double* dcolumn_; | 
|---|
| 43 | float*  fcolumn_; | 
|---|
| 44 | int*    icolumn_; | 
|---|
| 45 | char**  ccolumn_; | 
|---|
| 46 | }; | 
|---|
| 47 | ////////////////////////////////////////////////////////////////// | 
|---|
| 48 |  | 
|---|
| 49 |  | 
|---|
| 50 | } // Fin du namespace | 
|---|
| 51 |  | 
|---|
| 52 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.