Changeset 4029 in Sophya for trunk/SophyaExt/FitsIOServer/fboloread.h
- Timestamp:
- Oct 22, 2011, 1:15:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fboloread.h
r3493 r4029 26 26 enum {ColSNum=0, ColBolo=1, ColFlag=2, ColAlpha=3, ColDelta=4}; 27 27 28 FitsBoloRead( long blen=100,long bsens=1);28 FitsBoloRead(void); 29 29 virtual ~FitsBoloRead(); 30 30 … … 49 49 50 50 //! return Alpha value for row "n" into double 51 inline double GetAlpha(LONGLONG n ,bool usebuffer=true)52 {return GetCol(ColAlpha,n ,usebuffer);}51 inline double GetAlpha(LONGLONG n) 52 {return GetCol(ColAlpha,n);} 53 53 //! return Delta value for row "n" into double 54 inline double GetDelta(LONGLONG n ,bool usebuffer=true)55 {return GetCol(ColDelta,n ,usebuffer);}54 inline double GetDelta(LONGLONG n) 55 {return GetCol(ColDelta,n);} 56 56 //! return Bolo value for row "n" into double 57 inline double GetBolo(LONGLONG n ,bool usebuffer=true)58 {return GetCol(ColBolo,n ,usebuffer);}57 inline double GetBolo(LONGLONG n) 58 {return GetCol(ColBolo,n);} 59 59 //! return Flag value for row "n" into double 60 inline double GetFlag(LONGLONG n ,bool usebuffer=true)61 {if(!IsFlag()) return 0.; return GetCol(ColFlag,n ,usebuffer);}60 inline double GetFlag(LONGLONG n) 61 {if(!IsFlag()) return 0.; return GetCol(ColFlag,n);} 62 62 //! return SNum value for row "n" into double 63 inline double GetSNum(LONGLONG n,bool usebuffer=true) 64 {return GetCol(ColSNum,n,usebuffer);} 63 inline double GetSNum(LONGLONG n) {return GetCol(ColSNum,n);} 65 64 //! return column "col" value for row "n" into double 66 inline double GetCol(int col,LONGLONG n ,bool usebuffer=true) {65 inline double GetCol(int col,LONGLONG n) { 67 66 if(col<0 || col>=(int)mFABT.size()) 68 67 throw ParmError("FitsBoloRead::GetCol: bad column number\n"); 69 68 if(mFABT[col]==NULL) 70 69 throw NullPtrError("FitsBoloRead::GetCol: column not connected\n"); 71 return mFABT[col]->Read(n ,usebuffer);70 return mFABT[col]->Read(n); 72 71 } 73 72 … … 127 126 128 127 //! return the value of the first sampleNum 129 inline double ReadFirstSNum(void) {return GetSNum(0 ,false);}128 inline double ReadFirstSNum(void) {return GetSNum(0);} 130 129 //! return the value of the last sampleNum 131 inline double ReadLastSNum(void) {return GetSNum(NBline-1 ,false);}130 inline double ReadLastSNum(void) {return GetSNum(NBline-1);} 132 131 133 132 //! Is Alpha connected ? … … 152 151 //! Get the number of columns in the FITS HDU to be read 153 152 inline int GetNbCol(void) const {return mFABT.size();} 154 //! Get the read requested buffer length 155 inline long GetBLen(void) const {return BuffLen;} 156 //! Get the read buffer direction 157 inline long GetBSens(void) const {return BuffSens;} 158 //! Print to os 153 //! Print to os 159 154 virtual void Print(ostream& os,int lp=1) const; 160 155 //! Print to stdout
Note:
See TracChangeset
for help on using the changeset viewer.