EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ read_all_keywords_values()

std::map< std::string, std::string > read_all_keywords_values ( KeywordCategory  categories = KeywordCategory::All) const

List keywords and their values.

Parameters
categoriesThe set of selected categories

Read or parse keywords or records depending on their categories: mandatory, reserved, user, or comment.

Categories can be combined, e.g.:

static const KeywordCategory User
User-defined keywords.
Definition: KeywordCategory.h:31
static const KeywordCategory Reserved
Optional standard keywords excluding COMMENT and HISTORY.
Definition: KeywordCategory.h:29

Example usages:

auto keywords = h.read_all_keywords(~KeywordCategory::Comment);
auto keywords_vals = h.read_all_keywords_values();
auto header = h.read_all();
auto records = h.parse_all(KeywordCategory::Reserved);
static const KeywordCategory Comment
COMMENT and HISTORY keywords (non-valued reserved keywords).
Definition: KeywordCategory.h:30

where h is a Header.

See also
KeywordCategory
Warning
If several records have the same keywords, the returned value is a line break-separated list.