Changeset 3128 in Sophya for trunk/SophyaExt/FitsIOServer/fabtwriter.h
- Timestamp:
- Jan 11, 2007, 7:07:52 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtwriter.h
r3114 r3128 34 34 //! Write a long value in Fits header. 35 35 void WriteKey(const char *keyname,long val,char* comment=NULL); 36 //! Write a long long value in Fits header. 37 void WriteKey(const char *keyname,LONGLONG val,char* comment=NULL); 36 38 //! Write a string value in Fits header. 37 39 void WriteKey(const char *keyname,string val,char* comment=NULL); … … 43 45 44 46 //! Return the number of overflows managed by cfitsio 45 inline unsigned longGetNOverFlow(void) {return NOverFlow;}47 inline LONGLONG GetNOverFlow(void) {return NOverFlow;} 46 48 47 49 //! Return the c-fitsio file pointer 48 50 inline fitsfile * GetFitsPtr() { return FitsPtr; } 49 51 protected: 50 struct KeyDouble {string keyname; double val; string comment;}; 51 struct KeyLong {string keyname; long val; string comment;}; 52 struct KeyString {string keyname; string val; string comment;}; 52 struct KeyDouble {string keyname; double val; string comment;}; 53 struct KeyLong {string keyname; long val; string comment;}; 54 struct KeyLongLong {string keyname; LONGLONG val; string comment;}; 55 struct KeyString {string keyname; string val; string comment;}; 53 56 54 57 void cr_or_upd_fits(const char *cfname,bool update,int lp); 55 58 56 59 void writekeys(void); 57 void printerrorwrite(const char* type,int col, longrow,int sta);60 void printerrorwrite(const char* type,int col,LONGLONG row,int sta); 58 61 void printerror(int sta) const; 59 62 … … 63 66 unsigned short DbgLevel; 64 67 fitsfile *FitsPtr; 65 unsigned longNOverFlow;68 LONGLONG NOverFlow; 66 69 67 vector<struct KeyDouble> DoubleKey; 68 vector<struct KeyLong> LongKey; 69 vector<struct KeyString> StringKey; 70 vector<struct KeyDouble> DoubleKey; 71 vector<struct KeyLong> LongKey; 72 vector<struct KeyLongLong> LongLongKey; 73 vector<struct KeyString> StringKey; 70 74 }; 71 75 … … 95 99 {return addcol(label,tform,tunit,datatype);} 96 100 97 void Write(int col, longrow,int_1 val);98 void Write(int col, longrow,uint_1 val);99 void Write(int col, longrow,int_2 val);100 void Write(int col, longrow,uint_2 val);101 void Write(int col, longrow,int_4 val);102 void Write(int col, longrow,uint_4 val);103 void Write(int col, longrow,int_8 val);104 void Write(int col, longrow,float val);105 void Write(int col, longrow,double val);106 long Write(int col,longrow,TVector<uint_2>& val);107 long Write(int col,longrow,TVector<int_4>& val);108 long Write(int col,longrow,TVector<int_8>& val);109 long Write(int col,longrow,TVector<float>& val);110 long Write(int col,longrow,TVector<double>& val);101 void Write(int col,LONGLONG row,int_1 val); 102 void Write(int col,LONGLONG row,uint_1 val); 103 void Write(int col,LONGLONG row,int_2 val); 104 void Write(int col,LONGLONG row,uint_2 val); 105 void Write(int col,LONGLONG row,int_4 val); 106 void Write(int col,LONGLONG row,uint_4 val); 107 void Write(int col,LONGLONG row,int_8 val); 108 void Write(int col,LONGLONG row,float val); 109 void Write(int col,LONGLONG row,double val); 110 LONGLONG Write(int col,LONGLONG row,TVector<uint_2>& val); 111 LONGLONG Write(int col,LONGLONG row,TVector<int_4>& val); 112 LONGLONG Write(int col,LONGLONG row,TVector<int_8>& val); 113 LONGLONG Write(int col,LONGLONG row,TVector<float>& val); 114 LONGLONG Write(int col,LONGLONG row,TVector<double>& val); 111 115 112 116 //! Return the number of created columns … … 153 157 154 158 int BitPix; 155 longNaxis[2];159 LONGLONG Naxis[2]; 156 160 bool FirstTime; 157 161 }; … … 182 186 183 187 int BitPix; 184 longNaxis[3];188 LONGLONG Naxis[3]; 185 189 bool FirstTime; 186 190 };
Note:
See TracChangeset
for help on using the changeset viewer.