FACT++  1.0
double FitsDumper::GetDouble ( const MyColumn it,
size_t  i 
) const
private

Definition at line 275 of file fitsdump.cc.

References MyColumn::col, MyColumn::ptr, and fits::Table::Column::type.

Referenced by Dump(), DumpMinMax(), DumpRoot(), DumpStats(), and Format().

276 {
277  switch (it.col.type)
278  {
279  case 'A':
280  return reinterpret_cast<const char*>(it.ptr)[i];
281 
282  case 'L':
283  return reinterpret_cast<const bool*>(it.ptr)[i];
284 
285  case 'B':
286  return (unsigned int)reinterpret_cast<const uint8_t*>(it.ptr)[i];
287 
288  case 'I':
289  return reinterpret_cast<const int16_t*>(it.ptr)[i];
290 
291  case 'J':
292  return reinterpret_cast<const int32_t*>(it.ptr)[i];
293 
294  case 'K':
295  return reinterpret_cast<const int64_t*>(it.ptr)[i];
296 
297  case 'E':
298  return reinterpret_cast<const float*>(it.ptr)[i];
299 
300  case 'D':
301  return reinterpret_cast<const double*>(it.ptr)[i];
302  }
303 
304  return 0;
305 }
int i
Definition: db_dim_client.c:21
void * ptr
Definition: fitsdump.cc:36
fits::Table::Column col
Definition: fitsdump.cc:31

+ Here is the caller graph for this function: