Ignore:
Timestamp:
Oct 2, 2011, 8:25:23 PM (14 years ago)
Author:
cmv
Message:

bintable avec elements vecteur, cmv 02/10/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fabtcolread.h

    r3772 r4023  
    8383  string    ReadKeyS(const char *keyname);
    8484
    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);}
    8687
    8788  LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<uint_2>& data);
     
    9293
    9394  //! return the value of the first row
    94   double ReadFirstRow(bool usebuffer=false)
    95                     {return Read(0,usebuffer);}
     95  double ReadFirstRow(long nfirstel,bool usebuffer=false) {return Read(0,nfirstel,usebuffer);}
     96  double ReadFirstRow(bool usebuffer=false) {return Read(0,usebuffer);}
    9697  //! 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);}
    102107
    103108  //! Set debug level
     
    135140  //! Get the columns fits tform that is read
    136141  inline string GetColTForm(void) const {return ColTForm;}
     142  //! Get the columns fits repeat that is read
     143  inline long GetColRepeat(void) const {return ColRepeat;}
    137144  //! Get the read requested buffer length
    138145  inline long GetBLen(void) const {return BuffLen;}
     
    155162  string ColLabel,ColTUnit,ColTForm;
    156163  int ColNum,ColTypeCode,NBcol;
     164  long ColRepeat;
    157165  LONGLONG NBline;
    158166
     
    201209  string    ReadKeyS(const char *keyname);
    202210
    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);}
    204213  int GetColNum(const char *colname);
    205214
     
    240249  inline string GetColTForm(int ColNum) const
    241250         {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];}
    242254  //! Get the read requested buffer length
    243255  inline long GetBLen(void) const {return BuffLen;}
     
    260272  vector<string> ColLabel,ColTUnit,ColTForm;
    261273  vector<int> ColTypeCode;
     274  vector<long> ColRepeat;
    262275  int NBcol;
    263276  LONGLONG NBline;
Note: See TracChangeset for help on using the changeset viewer.