Changeset 4023 in Sophya for trunk/SophyaExt/FitsIOServer/fabtcolread.h
- Timestamp:
- Oct 2, 2011, 8:25:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtcolread.h
r3772 r4023 83 83 string ReadKeyS(const char *keyname); 84 84 85 double Read(LONGLONG n,bool usebuffer=true); 85 double Read(LONGLONG n,long nfirstel,bool usebuffer=true); 86 inline double Read(LONGLONG n,bool usebuffer=true) {return Read(n,0,usebuffer);} 86 87 87 88 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<uint_2>& data); … … 92 93 93 94 //! return the value of the first row 94 double ReadFirstRow( bool usebuffer=false)95 95 double ReadFirstRow(long nfirstel,bool usebuffer=false) {return Read(0,nfirstel,usebuffer);} 96 double ReadFirstRow(bool usebuffer=false) {return Read(0,usebuffer);} 96 97 //! return the value of the last row 97 double ReadLastRow(bool usebuffer=false) 98 {return Read(NBline-1,usebuffer);} 99 100 LONGLONG FirstRow(double val1,double val2,LONGLONG rowstart=-1); 101 LONGLONG LastRow(double val1,double val2,LONGLONG rowstart=-1); 98 double ReadLastRow(long nfirstel,bool usebuffer=false) {return Read(NBline-1,nfirstel,usebuffer);} 99 double ReadLastRow(bool usebuffer=false) {return Read(NBline-1,usebuffer);} 100 101 LONGLONG FirstRow(long nfirstel,double val1,double val2,LONGLONG rowstart=-1); 102 inline LONGLONG FirstRow(double val1,double val2,LONGLONG rowstart=-1) 103 {return FirstRow(0,val1,val2,rowstart);} 104 LONGLONG LastRow(long nfirstel,double val1,double val2,LONGLONG rowstart=-1); 105 inline LONGLONG LastRow(double val1,double val2,LONGLONG rowstart=-1) 106 {return LastRow(0,val1,val2,rowstart);} 102 107 103 108 //! Set debug level … … 135 140 //! Get the columns fits tform that is read 136 141 inline string GetColTForm(void) const {return ColTForm;} 142 //! Get the columns fits repeat that is read 143 inline long GetColRepeat(void) const {return ColRepeat;} 137 144 //! Get the read requested buffer length 138 145 inline long GetBLen(void) const {return BuffLen;} … … 155 162 string ColLabel,ColTUnit,ColTForm; 156 163 int ColNum,ColTypeCode,NBcol; 164 long ColRepeat; 157 165 LONGLONG NBline; 158 166 … … 201 209 string ReadKeyS(const char *keyname); 202 210 203 double Read(int ColNum,LONGLONG n,bool usebuffer=true); 211 double Read(int ColNum,LONGLONG n,long nfirstel,bool usebuffer=true); 212 inline double Read(int ColNum,LONGLONG n,bool usebuffer=true) {return Read(ColNum,n,0,usebuffer);} 204 213 int GetColNum(const char *colname); 205 214 … … 240 249 inline string GetColTForm(int ColNum) const 241 250 {if(ColNum<0 || ColNum>=NBcol) return string(""); else return ColTForm[ColNum];} 251 //! Get the columns fits repeat that is read 252 inline long GetColRepeat(int ColNum) const 253 {if(ColNum<0 || ColNum>=NBcol) return -999; else return ColRepeat[ColNum];} 242 254 //! Get the read requested buffer length 243 255 inline long GetBLen(void) const {return BuffLen;} … … 260 272 vector<string> ColLabel,ColTUnit,ColTForm; 261 273 vector<int> ColTypeCode; 274 vector<long> ColRepeat; 262 275 int NBcol; 263 276 LONGLONG NBline;
Note:
See TracChangeset
for help on using the changeset viewer.