Ignore:
Timestamp:
Oct 29, 2003, 1:51:17 PM (22 years ago)
Author:
cmv
Message:

possibilite d extension fits ds le writer cmv 29/10/2003

File:
1 edited

Legend:

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

    r2322 r2450  
    2121  FitsABTWriter(string fname,int hdutype=BINARY_TBL,int lp=0);
    2222  FitsABTWriter(const char* cfname,int hdutype=BINARY_TBL,int lp=0);
     23  FitsABTWriter(string fname,bool update,int hdutype=BINARY_TBL,int lp=0);
     24  FitsABTWriter(const char* cfname,bool update,int hdutype=BINARY_TBL,int lp=0);
    2325  virtual ~FitsABTWriter();
    2426
     
    2931  //! Write a long value in Fits header.
    3032  void WriteKey(const char *keyname,long val,char* comment=NULL);
     33  //! Write a string value in Fits header.
     34  void WriteKey(const char *keyname,string val,char* comment=NULL);
     35  //! Write a character string value in Fits header.
     36  inline void WriteKey(const char *keyname,char* val,char* comment=NULL)
     37                      {string dum=val; WriteKey(keyname,dum,comment);}
    3138
    3239  //! Add a new column to the FITS table and return its number (see addcol).
     
    7380  struct KeyDouble {string keyname; double val; string comment;};
    7481  struct KeyLong   {string keyname; long   val; string comment;};
     82  struct KeyString {string keyname; string val; string comment;};
    7583
    76   void createfits(const char *cfname,int hdutype,int lp);
     84  void cr_or_upd_fits(const char *cfname,bool update,int hdutype,int lp);
    7785  int addcol(const char* label,const char* tform
    7886            ,const char* tunit,int datatype);
     
    8391
    8492  string FitsFN,ExtName;
     93  bool Update;
    8594  int HduType;
    8695  unsigned short DbgLevel;
     
    94103  vector<struct KeyDouble> DoubleKey;
    95104  vector<struct KeyLong>   LongKey;
     105  vector<struct KeyString> StringKey;
    96106};
    97107
Note: See TracChangeset for help on using the changeset viewer.