Ignore:
Timestamp:
Oct 22, 2011, 1:15:49 PM (14 years ago)
Author:
cmv
Message:

suppression lecture Bufferisee de FitsABTColRd (inutile: cfitsio gere bufferisation en interne et complication code), cmv 22/10/2011

File:
1 edited

Legend:

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

    r4025 r4029  
    6868class FitsABTColRd : public AnyDataObj {
    6969public:
    70   FitsABTColRd(FitsOpenFile* fof,string collabel,int ihdu=0
    71               ,long blen=100,long bsens=1,int lp=0);
    72   FitsABTColRd(FitsOpenFile* fof,int colnum,int ihdu=0
    73               ,long blen=100,long bsens=1,int lp=0);
     70  FitsABTColRd(FitsOpenFile* fof,string collabel,int ihdu=0,int lp=0);
     71  FitsABTColRd(FitsOpenFile* fof,int colnum,int ihdu=0,int lp=0);
    7472  FitsABTColRd(FitsABTColRd& fbt);
    7573  FitsABTColRd();
    7674  virtual ~FitsABTColRd();
    77 
    78   void ChangeBuffer(long blen=100,long bsens=1);
    7975
    8076  double    ReadKey(const char *keyname);
     
    8379  string    ReadKeyS(const char *keyname);
    8480
    85   double Read(LONGLONG n,long nfirstel,bool usebuffer=true);
    86   inline double Read(LONGLONG n,bool usebuffer=true) {return Read(n,0,usebuffer);}
     81  double Read(LONGLONG n,long nfirstel=0);
     82  int_8  ReadLL(LONGLONG n,long nfirstel=0);
    8783  complex<r_8> ReadComplex(LONGLONG n,long nfirstel=0);
    8884  char* ReadInStr(LONGLONG n,long nfirstel=0);
     
    9591
    9692  //! return the value of the first row
    97   double ReadFirstRow(long nfirstel,bool usebuffer=false) {return Read(0,nfirstel,usebuffer);}
    98   double ReadFirstRow(bool usebuffer=false) {return Read(0,usebuffer);}
     93  double ReadFirstRow(long nfirstel) {return Read(0,nfirstel);}
     94  double ReadFirstRow(void) {return Read(0);}
    9995  //! return the value of the last row
    100   double ReadLastRow(long nfirstel,bool usebuffer=false) {return Read(NBline-1,nfirstel,usebuffer);}
    101   double ReadLastRow(bool usebuffer=false) {return Read(NBline-1,usebuffer);}
     96  double ReadLastRow(long nfirstel) {return Read(NBline-1,nfirstel);}
     97  double ReadLastRow(void) {return Read(NBline-1);}
    10298
    10399  LONGLONG FirstRow(long nfirstel,double val1,double val2,LONGLONG rowstart=-1);
     
    144140  //! Get the columns fits repeat that is read
    145141  inline long GetColRepeat(void) const {return ColRepeat;}
    146   //! Get the read requested buffer length
    147   inline long GetBLen(void) const {return BuffLen;}
    148   //! Get the read buffer direction
    149   inline long GetBSens(void) const {return BuffSens;}
    150142  //! Print to os
    151143  virtual void Print(ostream& os,int lp=1) const;
    152144  //! Print to stdout
    153145  inline  void Print(int lp=1) const {Print(cout,lp);}
    154   //! Get the read effective buffer length
    155   inline long GetNBuffer(void) const {return NBuffer;}
    156   //! Get the read bufferpointer
    157   inline double* GetBuffer(void) {return Buffer;}
    158146
    159147protected:
    160   void Init(FitsOpenFile* fof,const char *collabel,int colnum
    161            ,int ihdu,long blen,long bsens,int lp);
     148  void Init(FitsOpenFile* fof,const char *collabel,int colnum,int ihdu,int lp);
    162149  void Delete(void);
    163150
     
    170157  double NulVal;
    171158  unsigned short DbgLevel;
    172   long BuffLen, BuffSens;
    173159
    174160  LONGLONG NFitsRead;
    175161  FitsOpenFile* FitsOF;
    176   LONGLONG LineDeb, LineFin;
    177   double *Buffer;
    178   long NBuffer;
    179162};
    180163
     
    183166class FitsABTColRead : public FitsABTColRd {
    184167public:
    185   FitsABTColRead(string fname,string collabel,int ihdu=0
    186                 ,long blen=100,long bsens=1,int lp=0);
    187   FitsABTColRead(string fname,int colnum,int ihdu=0
    188                 ,long blen=100,long bsens=1,int lp=0);
    189   FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0
    190                 ,long blen=100,long bsens=1,int lp=0);
    191   FitsABTColRead(const char *cfname,int colnum,int ihdu=0
    192                 ,long blen=100,long bsens=1,int lp=0);
     168  FitsABTColRead(string fname,string collabel,int ihdu=0,int lp=0);
     169  FitsABTColRead(string fname,int colnum,int ihdu=0,int lp=0);
     170  FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0,int lp=0);
     171  FitsABTColRead(const char *cfname,int colnum,int ihdu=0,int lp=0);
    193172  FitsABTColRead(FitsABTColRead& fbt);
    194173  FitsABTColRead();
     
    198177
    199178///////////////////////////////////////////////////////////////////
    200 //! Class for reading ALL the columns in a FITS ASCII or BINARY table (no bufferisation)
     179//! Class for reading ALL the columns in a FITS ASCII or BINARY table
    201180class FitsABTColRd1F : public AnyDataObj {
    202181public:
     
    209188  string    ReadKeyS(const char *keyname);
    210189
    211   double Read(int ColNum,LONGLONG n,long nfirstel);
    212   inline double Read(int ColNum,LONGLONG n) {return Read(ColNum,n,0);}
     190  double Read(int ColNum,LONGLONG n,long nfirstel=0);
     191  int_8  ReadLL(int ColNum,LONGLONG n,long nfirstel=0);
    213192  complex<r_8> ReadComplex(int ColNum,LONGLONG n,long nfirstel=0);
    214193  char* ReadInStr(int ColNum,LONGLONG n,long nfirstel=0);
     
    258237  //! Print to stdout
    259238  inline  void Print(int lp=1) const {Print(cout,lp);}
    260   //! Get the read effective buffer length
    261239
    262240protected:
Note: See TracChangeset for help on using the changeset viewer.