Last change
on this file since 1138 was 1136, checked in by ansari, 25 years ago |
structuration a la ppersist+ convention sur hdu
|
File size:
1.6 KB
|
Rev | Line | |
---|
[1048] | 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 |
|
---|
[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 |
|
---|
| 23 | XNTuple ReadNextLine();
|
---|
| 24 | inline long GetNextLineIndex() const {return nextLineToBeRead_;}
|
---|
| 25 | inline void SetStartingLineIndex(long n) { nextLineToBeRead_ = n;}
|
---|
| 26 |
|
---|
[1136] | 27 | inline int status() const {return inFits_->statusF();};
|
---|
| 28 | inline string getStatus(int status) const {return inFits_->getErrStatus(status);};
|
---|
[1048] | 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | protected:
|
---|
| 33 |
|
---|
| 34 | // implementation de FitsFile
|
---|
| 35 | // virtual void ReadFromFits(FitsFile& fn);
|
---|
[1136] | 36 | virtual void ReadFromFits(FitsInFile& is);
|
---|
| 37 | virtual void WriteToFits(FitsOutFile& os);
|
---|
[1048] | 38 |
|
---|
| 39 | private :
|
---|
| 40 |
|
---|
| 41 | inline void InitNull()
|
---|
| 42 | {
|
---|
[1136] | 43 | inFits_ = NULL;
|
---|
[1048] | 44 | nextLineToBeRead_= 0;
|
---|
| 45 | dcount_ = 0;
|
---|
| 46 | fcount_ = 0;
|
---|
| 47 | icount_ = 0;
|
---|
| 48 | ccount_ = 0;
|
---|
| 49 | taille_des_chaines_ = 0;
|
---|
| 50 | ddata_ = NULL;
|
---|
| 51 | fdata_ = NULL;
|
---|
| 52 | idata_ = NULL;
|
---|
| 53 | cdata_ = NULL;
|
---|
| 54 | ColName_ = NULL;
|
---|
| 55 | }
|
---|
| 56 | // attributs de classe
|
---|
[1136] | 57 |
|
---|
| 58 | FitsInFile* inFits_;
|
---|
[1048] | 59 | long nextLineToBeRead_;
|
---|
| 60 | int dcount_;
|
---|
| 61 | int fcount_;
|
---|
| 62 | int icount_;
|
---|
| 63 | int ccount_;
|
---|
| 64 | int taille_des_chaines_;
|
---|
| 65 | double* ddata_;
|
---|
| 66 | float* fdata_;
|
---|
| 67 | int* idata_;
|
---|
| 68 | char** cdata_;
|
---|
| 69 | char ** ColName_;
|
---|
| 70 | };
|
---|
| 71 | //////////////////////////////////////////////////////////////////
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | } // Fin du namespace
|
---|
| 75 |
|
---|
| 76 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.