source: Sophya/trunk/SophyaExt/FitsIOServer/fbtntintf.h@ 1505

Last change on this file since 1505 was 1505, checked in by cmv, 24 years ago

Fits Binary and ASCII table Ntuple adapteur cmv 21/5/2001

File size: 1.4 KB
Line 
1/* Interface Fits BINARY/ASCII Table cmv 21/05/2001 */
2#ifndef FBTNTINTF_H_SEEN
3#define FBTNTINTF_H_SEEN
4
5#include "machdefs.h"
6#include <iostream.h>
7#include <string.h>
8#include <string>
9
10#include "anydataobj.h"
11#include "ntupintf.h"
12#include "FitsIO/fitsio.h"
13
14#include <vector>
15
16namespace SOPHYA {
17
18class FitsBTNtuIntf : public AnyDataObj, public NTupleInterface {
19public:
20 FitsBTNtuIntf(string fname,int ihdu=0,uint_4 blen=100,uint_2 lp=0);
21 FitsBTNtuIntf(char *cfname,int ihdu=0,uint_4 blen=100,uint_2 lp=0);
22 FitsBTNtuIntf(FitsBTNtuIntf& fbtnt);
23 FitsBTNtuIntf();
24 virtual ~FitsBTNtuIntf();
25
26 void SetNulVal(r_8 nulval=0.) {NulVal = nulval;}
27 virtual void Print(ostream& os,int lp=1) const;
28 inline void Print(int lp=1) const {Print(cout,lp);}
29
30 virtual uint_4 NbLines() const ;
31 virtual uint_4 NbColumns() const ;
32 virtual r_8 * GetLineD(int n) const ;
33 virtual r_8 GetCell(int n, int k) const ;
34 virtual string VarList_C(const char* nomx=NULL) const ;
35
36protected:
37 void Init(void);
38 void Delete(void);
39 void printerror(int sta) const;
40
41 string FitsFN;
42 int IHdu;
43 uint_2 DbgLevel;
44 fitsfile *FitsPtr;
45 long NBline;
46 int NBcol;
47 r_8 NulVal;
48 uint_4 BuffLen;
49 mutable uint_4 NFitsRead;
50 mutable long LineDeb, LineFin;
51 vector<string> ColName;
52 bool* ColReadable;
53 double **Buffer;
54 mutable r_8 * mRet;
55};
56
57} // namespace SOPHYA
58#endif /* FBTNTINTF_H_SEEN */
Note: See TracBrowser for help on using the repository browser.