FACT++  1.0
void FitsDumper::ListKeywords ( ostream &  fout)
private

Definition at line 147 of file fitsdump.cc.

References fits::GetKeys().

Referenced by Dump(), DumpRoot(), and ListHeader().

148 {
149  const fits::Table::Keys &fKeyMap = GetKeys();
150 
151  for (auto it=fKeyMap.begin(); it != fKeyMap.end(); it++)
152  {
153  fout << "## " << ::left << setw(8) << it->first << "= ";
154 
155  if (it->second.type=='T')
156  fout << ::left << setw(20) << ("'"+it->second.value+"'");
157  else
158  fout << ::right << setw(20) << it->second.value;
159 
160  if (!it->second.comment.empty())
161  fout << " / " << it->second.comment;
162  fout << '\n';
163  }
164 
165  fout << flush;
166 }
const Table::Keys & GetKeys() const
Definition: fits.h:1006
std::map< std::string, Entry > Keys
Definition: fits.h:112

+ Here is the call graph for this function:

+ Here is the caller graph for this function: