Changeset 1136 in Sophya for trunk/SophyaExt/FitsIOServer/fitsntuple.h
- Timestamp:
- Aug 24, 2000, 12:18:02 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsntuple.h
r1049 r1136 4 4 #ifndef FITSNTuple_SEEN 5 5 #define FITSNTuple_SEEN 6 #include "machdefs.h" 6 7 #include "ntuple.h" 7 8 #include "anydataobj.h" … … 14 15 // pout NTuple 15 16 //////////////////////////////////////////////////////////////// 16 class FITS_NTuple : public Fits File17 class FITS_NTuple : public FitsIOHandler 17 18 { 18 19 … … 24 25 FITS_NTuple(NTuple* obj); 25 26 virtual ~FITS_NTuple(); 26 void Read(char inputfile[],int hdunum=2); 27 28 virtual AnyDataObj* DataObj() { return(dobj_); } 29 virtual void SetDataObj(AnyDataObj & o) 30 { 31 NTuple* po = dynamic_cast< NTuple* >(& o); 32 if (po == NULL) return; 33 if (ownobj_ && dobj_) delete dobj_; 34 dobj_ = po; 35 ownobj_ = false; 36 } 37 38 27 39 /*! 28 40 fill the XNTuple only with lines from firstLine-th to (firstLine+numberOfLines-1)-th of the FITS-file inputfile. … … 31 43 */ 32 44 void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=2); 33 void Write(char outputfile[], bool OldFile=false); 45 34 46 inline operator NTuple() { return(*dobj_); } 35 47 inline NTuple * getObj() { return(dobj_); } … … 38 50 39 51 // implementation de FitsFile 40 //virtual void ReadFromFits(FitsFile& fn); 41 virtual void ReadFromFits(); 42 virtual void WriteToFits(); 43 44 float* getColFromObj(int colNr); 52 virtual void ReadFromFits(FitsInFile& is); 53 virtual void WriteToFits(FitsOutFile& os) ; 45 54 46 55 private : 47 56 48 inline void InitNull() 49 { 50 fistLineToBeRead_= -1; 51 numberOfLinesToBeRead_= -1; 52 column_ = NULL; 53 } 57 inline void InitNull() { fistLineToBeRead_= -1; numberOfLinesToBeRead_= -1;} 54 58 55 59 … … 59 63 int fistLineToBeRead_; 60 64 int numberOfLinesToBeRead_; 61 float* column_;62 65 }; 63 66 //////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.