47 result.reserve(keywords.size());
52 std::copy_if(keywords.begin(),
54 std::back_inserter(result),
59 return fits::GetKeywordClass(kw.GetName().name) ==
60 fits::KeywordClass::User;
68 for (
auto const& rule : m_rules) {
69 auto kws = rule(result);
@ User
Default is to keep only user-keywords.
@ All
Default rule is to keep all keywords (useful for in-place merge)
virtual fits::KeywordVector Process(fits::KeywordVector const &keywords, DefaultRule default_rule) const override
Contains data structure for FITS keywords.
std::vector< KeywordVariant > KeywordVector
Vector of keywords.
std::variant< ValueKeyword, EsoKeyword, LiteralKeyword > KeywordVariant
The different variants of keywords that are supported.