FACT++  1.0
CompressedFitsFile::ColumnEntry::ColumnEntry ( const string &  n,
char  t,
int  numOf,
BlockHeader head,
vector< uint16_t > &  seq 
)
inline

Constructor from values

Parameters
nthe column name
tthe column type
numofthe number of entries in the column
compthe compression type for this column

Definition at line 248 of file fitsDecompressor.cc.

References str.

252  : _name(n),
253  _num(numOf),
254  _typeSize(0),
255  _offset(0),
256  _type(t),
257  _description(""),
258  _header(head),
259  _compSequence(seq)
260  {
261  switch (t)
262  {
263  case 'L':
264  case 'A':
265  case 'B': _typeSize = 1; break;
266  case 'I': _typeSize = 2; break;
267  case 'J':
268  case 'E': _typeSize = 4; break;
269  case 'K':
270  case 'D': _typeSize = 8; break;
271  default:
272  cout << "Error: typename " << t << " missing in the current implementation" << endl;
273  };
274 
275  ostringstream str;
276  str << "data format of field: ";
277 
278  switch (t)
279  {
280  case 'L': str << "1-byte BOOL"; break;
281  case 'A': str << "1-byte CHAR"; break;
282  case 'B': str << "BYTE"; break;
283  case 'I': str << "2-byte INTEGER"; break;
284  case 'J': str << "4-byte INTEGER"; break;
285  case 'K': str << "8-byte INTEGER"; break;
286  case 'E': str << "4-byte FLOAT"; break;
287  case 'D': str << "8-byte FLOAT"; break;
288  }
289 
290  _description = str.str();
291  }
string _name
name of the column
char str[80]
Definition: test_client.c:7
string _description
a description for the column. It will be placed in the header
char _type
the type of the column, as specified by the fits documentation
int _typeSize
the number of bytes taken by one element
int _offset
the offset of the column, in bytes, from the beginning of one row
TT t
Definition: test_client.c:26
int _num
number of elements contained in one row of this column