Changeset 1814 in Sophya for trunk/SophyaExt/FitsIOServer/fabtwriter.h
- Timestamp:
- Dec 14, 2001, 12:00:21 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtwriter.h
r1673 r1814 22 22 FitsABTWriter(const char* cfname,int hdutype=BINARY_TBL,int lp=0); 23 23 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); 24 31 25 32 //! Add a new column to the FITS table and return its number (see addcol). … … 58 65 59 66 protected: 67 struct KeyDouble {string keyname; double val; string comment;}; 68 struct KeyLong {string keyname; long val; string comment;}; 69 60 70 void createfits(const char *cfname,int hdutype,int lp); 61 71 int addcol(const char* label,const char* tform 62 72 ,const char* tunit,int datatype); 63 73 void createtbl(void); 74 void writekeys(void); 64 75 void printerrorwrite(const char* type,int col,long row,int sta); 65 76 void printerror(int sta) const; … … 74 85 vector<string> TUnit; 75 86 unsigned long NOverFlow; 87 88 vector<struct KeyDouble> DoubleKey; 89 vector<struct KeyLong> LongKey; 76 90 }; 77 91
Note:
See TracChangeset
for help on using the changeset viewer.