Changeset 2449 in Sophya for trunk/SophyaExt/FitsIOServer/fabtcolread.h
- Timestamp:
- Oct 29, 2003, 12:17:48 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtcolread.h
r2322 r2449 14 14 namespace SOPHYA { 15 15 16 /////////////////////////////////////////////////////////////////// 17 //! Class for opening a FITS file for reading 18 class FitsOpenFile : public AnyDataObj { 19 public: 20 FitsOpenFile(string fname); 21 FitsOpenFile(const char *cfname); 22 FitsOpenFile(); 23 FitsOpenFile(FitsOpenFile& fof); 24 virtual ~FitsOpenFile(); 25 26 inline string GetFileName() {return FitsFN;} 27 inline int GetNHdu() {return NHdu;} 28 inline fitsfile* GetFitsPtr() {return FitsPtr;} 29 30 protected: 31 void Init(const char *cfname); 32 void Delete(void); 33 void printerror(int sta) const; 34 35 string FitsFN; 36 int NHdu; 37 fitsfile *FitsPtr; 38 }; 39 40 /////////////////////////////////////////////////////////////////// 16 41 //! Class for reading a column in a FITS ASCII or BINARY table 17 class FitsABTColR ead : public AnyDataObj {42 class FitsABTColRd : public AnyDataObj { 18 43 public: 19 FitsABTColRead(string fname,string collabel,int ihdu=0 20 ,long blen=100,long bsens=1,int lp=0); 21 FitsABTColRead(string fname,int colnum,int ihdu=0 22 ,long blen=100,long bsens=1,int lp=0); 23 FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0 24 ,long blen=100,long bsens=1,int lp=0); 25 FitsABTColRead(const char *cfname,int colnum,int ihdu=0 26 ,long blen=100,long bsens=1,int lp=0); 27 FitsABTColRead(FitsABTColRead& fbt); 28 virtual ~FitsABTColRead(); 44 FitsABTColRd(FitsOpenFile* fof,string collabel,int ihdu=0 45 ,long blen=100,long bsens=1,int lp=0); 46 FitsABTColRd(FitsOpenFile* fof,int colnum,int ihdu=0 47 ,long blen=100,long bsens=1,int lp=0); 48 FitsABTColRd(FitsABTColRd& fbt); 49 FitsABTColRd(); 50 virtual ~FitsABTColRd(); 29 51 30 52 void ChangeBuffer(long blen=100,long bsens=1); … … 56 78 //! Get the FITS file name 57 79 inline string GetFileName(void) {return FitsFN;} 80 //! Get the pointer to FitsOpenFile 81 inline FitsOpenFile* GetFitsOpenFile(void) {return FitsOF;} 58 82 //! Get the FITS file pointer (cfistio pointer) 59 83 inline fitsfile* GetFitsPointer(void) {return FitsPtr;} … … 92 116 93 117 protected: 94 void Init( const char *cfname,const char *collabel,int colnum118 void Init(FitsOpenFile* fof,const char *collabel,int colnum 95 119 ,int ihdu,long blen,long bsens,int lp); 96 120 void Delete(void); … … 106 130 107 131 unsigned long NFitsRead; 108 fitsfile *FitsPtr; 132 FitsOpenFile* FitsOF; 133 fitsfile* FitsPtr; 109 134 long LineDeb, LineFin; 110 135 double *Buffer; … … 112 137 }; 113 138 139 /////////////////////////////////////////////////////////////////// 140 //! Class for reading a column in a FITS ASCII or BINARY table with fits file opening 141 class FitsABTColRead : public FitsABTColRd { 142 public: 143 FitsABTColRead(string fname,string collabel,int ihdu=0 144 ,long blen=100,long bsens=1,int lp=0); 145 FitsABTColRead(string fname,int colnum,int ihdu=0 146 ,long blen=100,long bsens=1,int lp=0); 147 FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0 148 ,long blen=100,long bsens=1,int lp=0); 149 FitsABTColRead(const char *cfname,int colnum,int ihdu=0 150 ,long blen=100,long bsens=1,int lp=0); 151 FitsABTColRead(FitsABTColRead& fbt); 152 FitsABTColRead(); 153 virtual ~FitsABTColRead(); 154 }; 155 114 156 } // namespace SOPHYA 115 157 #endif /* FABTCOLREAD_H_SEEN */
Note:
See TracChangeset
for help on using the changeset viewer.