FACT++  1.0
void fits::Table::PrintColumns ( ) const
inline

Definition at line 367 of file fits.h.

References ___all___, and gLog.

Referenced by fits::PrintColumns().

368  {
369  typedef std::map<std::pair<size_t, std::string>, Column> Sorted;
370 
371  Sorted sorted;
372 
373  for (Columns::const_iterator it=cols.cbegin(); it!=cols.cend(); it++)
374  sorted[std::make_pair(it->second.offset, it->first)] = it->second;
375 
376  for (Sorted::const_iterator it=sorted.cbegin(); it!=sorted.cend(); it++)
377  {
378  gLog << ___all___ << std::setw(6) << it->second.offset << "| ";
379  gLog << it->second.num << 'x';
380  switch (it->second.type)
381  {
382  case 'A': gLog << "char(8)"; break;
383  case 'L': gLog << "bool(8)"; break;
384  case 'B': gLog << "byte(8)"; break;
385  case 'I': gLog << "short(16)"; break;
386  case 'J': gLog << "int(32)"; break;
387  case 'K': gLog << "int(64)"; break;
388  case 'E': gLog << "float(32)"; break;
389  case 'D': gLog << "double(64)"; break;
390  }
391  gLog << ": " << it->first.second << " [" << it->second.unit << "]" << std::endl;
392  }
393  }
#define gLog
Definition: fits.h:36
Columns cols
Definition: fits.h:116
#define ___all___
Definition: fits.h:39

+ Here is the caller graph for this function: