Rev | Line | |
---|
[1048] | 1 | // Guy Le Meur 06/2000
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | #ifndef FITSBntblLineReader_SEEN
|
---|
| 5 | #define FITSBntblLineReader_SEEN
|
---|
| 6 | #include "fitsfile.h"
|
---|
[1193] | 7 | //#include "xntuple.h"
|
---|
[1048] | 8 |
|
---|
| 9 | namespace SOPHYA {
|
---|
| 10 | ///////////////////////////////////////////////////////////
|
---|
| 11 | // Lecture ligne par ligne d'une BINTABLE sur fichier FITS
|
---|
| 12 | //
|
---|
| 13 | ///////////////////////////////////////////////////////////
|
---|
| 14 |
|
---|
[1136] | 15 | class FITS_BntblLineReader : public FitsIOHandler
|
---|
[1048] | 16 | {
|
---|
| 17 |
|
---|
| 18 | public:
|
---|
| 19 | FITS_BntblLineReader();
|
---|
| 20 | FITS_BntblLineReader(char inputfile[],int hdunum=2);
|
---|
| 21 | ~FITS_BntblLineReader();
|
---|
| 22 |
|
---|
[1193] | 23 | //XNTuple ReadNextLineX();
|
---|
| 24 | BnTblLine& ReadNextLine();
|
---|
[1048] | 25 | inline long GetNextLineIndex() const {return nextLineToBeRead_;}
|
---|
| 26 | inline void SetStartingLineIndex(long n) { nextLineToBeRead_ = n;}
|
---|
| 27 |
|
---|
[1136] | 28 | inline int status() const {return inFits_->statusF();};
|
---|
| 29 | inline string getStatus(int status) const {return inFits_->getErrStatus(status);};
|
---|
[1048] | 30 |
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | protected:
|
---|
| 34 |
|
---|
| 35 | // implementation de FitsFile
|
---|
| 36 | // virtual void ReadFromFits(FitsFile& fn);
|
---|
[1136] | 37 | virtual void ReadFromFits(FitsInFile& is);
|
---|
| 38 | virtual void WriteToFits(FitsOutFile& os);
|
---|
[1048] | 39 |
|
---|
| 40 | private :
|
---|
| 41 |
|
---|
| 42 | inline void InitNull()
|
---|
| 43 | {
|
---|
[1136] | 44 | inFits_ = NULL;
|
---|
[1048] | 45 | nextLineToBeRead_= 0;
|
---|
| 46 | }
|
---|
| 47 | // attributs de classe
|
---|
[1136] | 48 |
|
---|
| 49 | FitsInFile* inFits_;
|
---|
[1048] | 50 | long nextLineToBeRead_;
|
---|
[1193] | 51 | BnTblLine ligne_;
|
---|
[1048] | 52 | };
|
---|
[1193] | 53 |
|
---|
| 54 |
|
---|
[1048] | 55 | //////////////////////////////////////////////////////////////////
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | } // Fin du namespace
|
---|
| 59 |
|
---|
| 60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.