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