Definition at line 466 of file ofits.h.
References ___err___, findkey(), fits::GetKeys(), gLog, FITS::IsReservedKeyWord(), ofits::Key::key, and ofits::Table::num_rows.
471 throw std::runtime_error(
"No header keys can be copied, rows were already written to the file... ignoring CopyKeys().");
473 gLog <<
___err___ <<
"ERROR - No header key can be copyied, rows were already written to the file... ignoring CopyKeys()." << std::endl;
478 const auto &keys = fin.
GetKeys();
481 for (
auto it=keys.cbegin(); it!=keys.cend(); it++)
483 const std::string &key = it->first;
488 const auto &entry = it->second;
491 if (entry.fitsString[9]==
'=')
495 if (it2!=
fKeys.end())
504 fKeys.emplace_back(entry.fitsString);
static bool IsReservedKeyWord(const std::string &key)
const Table::Keys & GetKeys() const
std::vector< Key >::iterator findkey(const std::string &key)