Changeset 2843 in Sophya for trunk/SophyaExt/FitsIOServer/fitsinoutfile.h
- Timestamp:
- Nov 18, 2005, 6:44:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsinoutfile.h
r2820 r2843 63 63 static int DataType(complex<r_8> d) { return TDBLCOMPLEX; } 64 64 65 static int DataType(char* d) { return TSTRING; } 66 65 67 // Conversion entre type FITS et chaine - exemple TFLOAT -> r_4 66 68 static string ImageTypeToTypeString(int ityp); … … 88 90 inline fitsfile* FitsPtr() const { return fptr_; } 89 91 static float cfitsioVersion(); 92 //! Return the SOPHYA FitsIOServer version 93 static float Version() { return 2.0; } 90 94 91 95 //---- Header manipulation methods … … 150 154 inline int GetDef_TableType() { return def_tbltype; } 151 155 156 //! Defines default column width for strings (Aw) 157 inline void SetDef_StrColWidth(long w=16) { def_strcolw = w; } 158 //! Return default column width for strings (Aw) 159 inline long GetDef_StrColWidth() { return def_strcolw; } 160 152 161 //! Insert (add) a new column 153 162 void InsertColumn(int numcol, const char* colname, const char* fmt); … … 158 167 159 168 // Manipulation des informations de l'entete 160 //! Returns a given keyword value 161 string KeyValue(string const & key); 169 //! Retrieve a keyword value from the header 170 inline string KeyValue(string const & key) 171 { bool nosk; return KeyValue(key, nosk); } 172 //! Retrieve a keyword value from the header 173 string KeyValue(string const & key, bool& nosk); 162 174 //! Read header records and appends the information to dvl 163 175 int GetHeaderRecords(DVList& dvl); … … 184 196 // Default table type 185 197 int def_tbltype; 198 // default column width for strings 199 long def_strcolw; 186 200 }; 187 201
Note:
See TracChangeset
for help on using the changeset viewer.