Changeset 18953 for trunk/Mars/mcore
- Timestamp:
- 03/05/18 16:30:25 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r18594 r18953 85 85 return t; 86 86 } 87 88 /* Specialization needs to be outside namespace-scope, see below 89 template<> 90 std::string fits::Entry::Get<std::string>() const 91 { 92 return value; 93 }*/ 87 94 }; 88 95 … … 101 108 struct Column 102 109 { 110 size_t id; 103 111 size_t offset; 104 112 size_t num; … … 107 115 char type; 108 116 std::string unit; 117 std::string comment; 109 118 Compression_t comp; 110 119 }; … … 287 296 const std::string unit = Get<std::string>("TUNIT"+num, ""); 288 297 const std::string comp = Get<std::string>("ZCTYP"+num, ""); 298 const std::string comm = Get<std::string>("TCOMM"+num, ""); 289 299 290 300 Compression_t compress = kCompUnknown; … … 331 341 } 332 342 333 const Table::Column col = { bytes, size_t(n), size, n*size, type, unit, compress};343 const Table::Column col = { i, bytes, size_t(n), size, n*size, type, unit, comm, compress }; 334 344 335 345 cols[id] = col; … … 1045 1055 }; 1046 1056 1047 #endif 1057 template<> 1058 std::string fits::Entry::Get<std::string>() const 1059 { 1060 return value; 1061 } 1062 1063 #endif
Note:
See TracChangeset
for help on using the changeset viewer.