Changeset 1673 in Sophya


Ignore:
Timestamp:
Oct 6, 2001, 3:23:51 PM (24 years ago)
Author:
cmv
Message:

acces au pointeur cfitsio dans le colread
methode print dans le writter cmv 6/10/01

Location:
trunk/SophyaExt/FitsIOServer
Files:
3 edited

Legend:

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

    r1659 r1673  
    5151  //! Get the FITS file name
    5252  inline string  GetFileName(void) {return FitsFN;}
     53  //! Get the FITS file pointer (cfistio pointer)
     54  inline fitsfile* GetFitsPointer(void) {return FitsPtr;}
    5355  //! Get the number of HDU in the FITS file
    5456  inline int     GetNHDU(void) {return NHdu;}
  • trunk/SophyaExt/FitsIOServer/fabtwriter.cc

    r1669 r1673  
    343343 return;
    344344}
     345
     346/////////////////////////////////////////////////
     347void FitsABTWriter::Print(ostream& os,int lp=1) const
     348{
     349os<<"FitsABTWriter::Print: FitsFN "<<FitsFN<<endl
     350  <<"                      HduType "<<HduType<<"  NOverFlow "<<NOverFlow
     351  <<"  NCol "<<Label.size()<<endl;
     352if(Label.size()>0 && lp>=1)
     353  for(int i=0;i<(int)Label.size();i++)
     354    os<<i<<"... Label="<<Label[i]<<" TForm="<<TForm[i]<<" TUnit="<<TUnit[i]<<endl;
     355}
  • trunk/SophyaExt/FitsIOServer/fabtwriter.h

    r1660 r1673  
    4949  inline unsigned long GetNOverFlow(void) {return NOverFlow;}
    5050
     51  //! Return the number of created columns
     52  inline int GetNbCol(void) {return (int) Label.size();}
     53
     54  //! Print to os
     55  virtual void   Print(ostream& os,int lp=1) const;
     56  //! Print to stdout
     57  inline  void   Print(int lp=1) const {Print(cout,lp);}
     58
    5159protected:
    5260  void createfits(const char *cfname,int hdutype,int lp);
Note: See TracChangeset for help on using the changeset viewer.