Ignore:
Timestamp:
Dec 14, 2001, 12:00:21 PM (24 years ago)
Author:
cmv
Message:

lecture/ecriture clefs fits cmv 14/12/01

File:
1 edited

Legend:

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

    r1673 r1814  
    2222  FitsABTWriter(const char* cfname,int hdutype=BINARY_TBL,int lp=0);
    2323  virtual ~FitsABTWriter();
     24
     25  void Flush(void);
     26
     27  //! Write a double value in Fits header.
     28  void WriteKey(const char *keyname,double val,char* comment=NULL);
     29  //! Write a long value in Fits header.
     30  void WriteKey(const char *keyname,long val,char* comment=NULL);
    2431
    2532  //! Add a new column to the FITS table and return its number (see addcol).
     
    5865
    5966protected:
     67  struct KeyDouble {string keyname; double val; string comment;};
     68  struct KeyLong   {string keyname; long   val; string comment;};
     69
    6070  void createfits(const char *cfname,int hdutype,int lp);
    6171  int addcol(const char* label,const char* tform
    6272            ,const char* tunit,int datatype);
    6373  void createtbl(void);
     74  void writekeys(void);
    6475  void printerrorwrite(const char* type,int col,long row,int sta);
    6576  void printerror(int sta) const;
     
    7485  vector<string> TUnit;
    7586  unsigned long NOverFlow;
     87
     88  vector<struct KeyDouble> DoubleKey;
     89  vector<struct KeyLong>   LongKey;
    7690};
    7791
Note: See TracChangeset for help on using the changeset viewer.