Changeset 2450 in Sophya for trunk/SophyaExt/FitsIOServer/fabtwriter.h
- Timestamp:
- Oct 29, 2003, 1:51:17 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtwriter.h
r2322 r2450 21 21 FitsABTWriter(string fname,int hdutype=BINARY_TBL,int lp=0); 22 22 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); 23 25 virtual ~FitsABTWriter(); 24 26 … … 29 31 //! Write a long value in Fits header. 30 32 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);} 31 38 32 39 //! Add a new column to the FITS table and return its number (see addcol). … … 73 80 struct KeyDouble {string keyname; double val; string comment;}; 74 81 struct KeyLong {string keyname; long val; string comment;}; 82 struct KeyString {string keyname; string val; string comment;}; 75 83 76 void cr eatefits(const char *cfname,int hdutype,int lp);84 void cr_or_upd_fits(const char *cfname,bool update,int hdutype,int lp); 77 85 int addcol(const char* label,const char* tform 78 86 ,const char* tunit,int datatype); … … 83 91 84 92 string FitsFN,ExtName; 93 bool Update; 85 94 int HduType; 86 95 unsigned short DbgLevel; … … 94 103 vector<struct KeyDouble> DoubleKey; 95 104 vector<struct KeyLong> LongKey; 105 vector<struct KeyString> StringKey; 96 106 }; 97 107
Note:
See TracChangeset
for help on using the changeset viewer.