| 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 FitsIOHandler
|
|---|
| 16 | {
|
|---|
| 17 |
|
|---|
| 18 | public:
|
|---|
| 19 | FITS_BntblLineReader();
|
|---|
| 20 | FITS_BntblLineReader(char inputfile[],int hdunum=2);
|
|---|
| 21 | ~FITS_BntblLineReader();
|
|---|
| 22 |
|
|---|
| 23 | //XNTuple ReadNextLineX();
|
|---|
| 24 | BnTblLine& ReadNextLine();
|
|---|
| 25 | inline long GetNextLineIndex() const {return nextLineToBeRead_;}
|
|---|
| 26 | inline void SetStartingLineIndex(long n) { nextLineToBeRead_ = n;}
|
|---|
| 27 |
|
|---|
| 28 | inline int status() const {return inFits_->statusF();};
|
|---|
| 29 | inline string getStatus(int status) const {return inFits_->getErrStatus(status);};
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | protected:
|
|---|
| 34 |
|
|---|
| 35 | // implementation de FitsFile
|
|---|
| 36 | // virtual void ReadFromFits(FitsFile& fn);
|
|---|
| 37 | virtual void ReadFromFits(FitsInFile& is);
|
|---|
| 38 | virtual void WriteToFits(FitsOutFile& os);
|
|---|
| 39 |
|
|---|
| 40 | private :
|
|---|
| 41 |
|
|---|
| 42 | inline void InitNull()
|
|---|
| 43 | {
|
|---|
| 44 | inFits_ = NULL;
|
|---|
| 45 | nextLineToBeRead_= 0;
|
|---|
| 46 | }
|
|---|
| 47 | // attributs de classe
|
|---|
| 48 |
|
|---|
| 49 | FitsInFile* inFits_;
|
|---|
| 50 | long nextLineToBeRead_;
|
|---|
| 51 | BnTblLine ligne_;
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | //////////////////////////////////////////////////////////////////
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | } // Fin du namespace
|
|---|
| 59 |
|
|---|
| 60 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.