| Line | |
|---|
| 1 | // Guy Le Meur 06/2000
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | #ifndef FITSBntblLineReader_SEEN
|
|---|
| 5 | #define FITSBntblLineReader_SEEN
|
|---|
| 6 | #include "fitsfile.h"
|
|---|
| 7 | #include "xntuple.h"
|
|---|
| 8 |
|
|---|
| 9 | namespace SOPHYA {
|
|---|
| 10 | ///////////////////////////////////////////////////////////
|
|---|
| 11 | // Lecture ligne par ligne d'une BINTABLE sur fichier FITS
|
|---|
| 12 | //
|
|---|
| 13 | ///////////////////////////////////////////////////////////
|
|---|
| 14 |
|
|---|
| 15 | class FITS_BntblLineReader : public FitsFile
|
|---|
| 16 | {
|
|---|
| 17 |
|
|---|
| 18 | public:
|
|---|
| 19 | FITS_BntblLineReader();
|
|---|
| 20 | FITS_BntblLineReader(char inputfile[],int hdunum=2);
|
|---|
| 21 | ~FITS_BntblLineReader();
|
|---|
| 22 |
|
|---|
| 23 | XNTuple ReadNextLine();
|
|---|
| 24 | inline long GetNextLineIndex() const {return nextLineToBeRead_;}
|
|---|
| 25 | inline void SetStartingLineIndex(long n) { nextLineToBeRead_ = n;}
|
|---|
| 26 |
|
|---|
| 27 | inline int status() const {return statusF();};
|
|---|
| 28 | inline string getStatus(int status) const {return getErrStatus(status);};
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | protected:
|
|---|
| 33 |
|
|---|
| 34 | // implementation de FitsFile
|
|---|
| 35 | // virtual void ReadFromFits(FitsFile& fn);
|
|---|
| 36 | virtual void ReadFromFits();
|
|---|
| 37 | virtual void WriteToFits();
|
|---|
| 38 |
|
|---|
| 39 | private :
|
|---|
| 40 |
|
|---|
| 41 | inline void InitNull()
|
|---|
| 42 | {
|
|---|
| 43 | nextLineToBeRead_= 0;
|
|---|
| 44 | dcount_ = 0;
|
|---|
| 45 | fcount_ = 0;
|
|---|
| 46 | icount_ = 0;
|
|---|
| 47 | ccount_ = 0;
|
|---|
| 48 | taille_des_chaines_ = 0;
|
|---|
| 49 | ddata_ = NULL;
|
|---|
| 50 | fdata_ = NULL;
|
|---|
| 51 | idata_ = NULL;
|
|---|
| 52 | cdata_ = NULL;
|
|---|
| 53 | ColName_ = NULL;
|
|---|
| 54 | }
|
|---|
| 55 | // attributs de classe
|
|---|
| 56 | long nextLineToBeRead_;
|
|---|
| 57 | int dcount_;
|
|---|
| 58 | int fcount_;
|
|---|
| 59 | int icount_;
|
|---|
| 60 | int ccount_;
|
|---|
| 61 | int taille_des_chaines_;
|
|---|
| 62 | double* ddata_;
|
|---|
| 63 | float* fdata_;
|
|---|
| 64 | int* idata_;
|
|---|
| 65 | char** cdata_;
|
|---|
| 66 | char ** ColName_;
|
|---|
| 67 | };
|
|---|
| 68 | //////////////////////////////////////////////////////////////////
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | } // Fin du namespace
|
|---|
| 72 |
|
|---|
| 73 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.