source: Sophya/trunk/SophyaExt/FitsIOServer/fitsbntbllinereader.h@ 1193

Last change on this file since 1193 was 1193, checked in by ansari, 25 years ago

amelioration lecture ligne a ligne

File size: 1.3 KB
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
9namespace SOPHYA {
10///////////////////////////////////////////////////////////
11// Lecture ligne par ligne d'une BINTABLE sur fichier FITS
12//
13///////////////////////////////////////////////////////////
14
15class FITS_BntblLineReader : public FitsIOHandler
16{
17
18public:
19FITS_BntblLineReader();
20FITS_BntblLineReader(char inputfile[],int hdunum=2);
21~FITS_BntblLineReader();
22
23//XNTuple ReadNextLineX();
24BnTblLine& 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
33protected:
34
35 // implementation de FitsFile
36 // virtual void ReadFromFits(FitsFile& fn);
37 virtual void ReadFromFits(FitsInFile& is);
38virtual void WriteToFits(FitsOutFile& os);
39
40 private :
41
42inline 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.