Ignore:
Timestamp:
Oct 29, 2003, 12:17:48 AM (22 years ago)
Author:
cmv
Message:

class FitsABTColRd et FitsABTColRead modifs cmv 29/10/2003

File:
1 edited

Legend:

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

    r2322 r2449  
    1414namespace SOPHYA {
    1515
     16///////////////////////////////////////////////////////////////////
     17//! Class for opening a FITS file for reading
     18class FitsOpenFile : public AnyDataObj {
     19public:
     20  FitsOpenFile(string fname);
     21  FitsOpenFile(const char *cfname);
     22  FitsOpenFile();
     23  FitsOpenFile(FitsOpenFile& fof);
     24  virtual ~FitsOpenFile();
     25
     26  inline string GetFileName() {return FitsFN;}
     27  inline int GetNHdu() {return NHdu;}
     28  inline fitsfile* GetFitsPtr() {return FitsPtr;}
     29
     30protected:
     31  void Init(const char *cfname);
     32  void Delete(void);
     33  void printerror(int sta) const;
     34
     35  string FitsFN;
     36  int NHdu;
     37  fitsfile *FitsPtr;
     38};
     39
     40///////////////////////////////////////////////////////////////////
    1641//! Class for reading a column in a FITS ASCII or BINARY table
    17 class FitsABTColRead : public AnyDataObj {
     42class FitsABTColRd : public AnyDataObj {
    1843public:
    19   FitsABTColRead(string fname,string collabel,int ihdu=0
    20                 ,long blen=100,long bsens=1,int lp=0);
    21   FitsABTColRead(string fname,int colnum,int ihdu=0
    22                 ,long blen=100,long bsens=1,int lp=0);
    23   FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0
    24                 ,long blen=100,long bsens=1,int lp=0);
    25   FitsABTColRead(const char *cfname,int colnum,int ihdu=0
    26                 ,long blen=100,long bsens=1,int lp=0);
    27   FitsABTColRead(FitsABTColRead& fbt);
    28   virtual ~FitsABTColRead();
     44  FitsABTColRd(FitsOpenFile* fof,string collabel,int ihdu=0
     45              ,long blen=100,long bsens=1,int lp=0);
     46  FitsABTColRd(FitsOpenFile* fof,int colnum,int ihdu=0
     47              ,long blen=100,long bsens=1,int lp=0);
     48  FitsABTColRd(FitsABTColRd& fbt);
     49  FitsABTColRd();
     50  virtual ~FitsABTColRd();
    2951
    3052  void ChangeBuffer(long blen=100,long bsens=1);
     
    5678  //! Get the FITS file name
    5779  inline string  GetFileName(void) {return FitsFN;}
     80  //! Get the pointer to FitsOpenFile
     81  inline FitsOpenFile* GetFitsOpenFile(void) {return FitsOF;}
    5882  //! Get the FITS file pointer (cfistio pointer)
    5983  inline fitsfile* GetFitsPointer(void) {return FitsPtr;}
     
    92116
    93117protected:
    94   void Init(const char *cfname,const char *collabel,int colnum
     118  void Init(FitsOpenFile* fof,const char *collabel,int colnum
    95119           ,int ihdu,long blen,long bsens,int lp);
    96120  void Delete(void);
     
    106130
    107131  unsigned long NFitsRead;
    108   fitsfile *FitsPtr;
     132  FitsOpenFile* FitsOF;
     133  fitsfile* FitsPtr;
    109134  long LineDeb, LineFin;
    110135  double *Buffer;
     
    112137};
    113138
     139///////////////////////////////////////////////////////////////////
     140//! Class for reading a column in a FITS ASCII or BINARY table with fits file opening
     141class FitsABTColRead : public FitsABTColRd {
     142public:
     143  FitsABTColRead(string fname,string collabel,int ihdu=0
     144                ,long blen=100,long bsens=1,int lp=0);
     145  FitsABTColRead(string fname,int colnum,int ihdu=0
     146                ,long blen=100,long bsens=1,int lp=0);
     147  FitsABTColRead(const char *cfname,const char *collabel,int ihdu=0
     148                ,long blen=100,long bsens=1,int lp=0);
     149  FitsABTColRead(const char *cfname,int colnum,int ihdu=0
     150                ,long blen=100,long bsens=1,int lp=0);
     151  FitsABTColRead(FitsABTColRead& fbt);
     152  FitsABTColRead();
     153  virtual ~FitsABTColRead();
     154};
     155
    114156} // namespace SOPHYA
    115157#endif    /* FABTCOLREAD_H_SEEN */
Note: See TracChangeset for help on using the changeset viewer.