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

◆ parse_all()

RecordSeq parse_all ( KeywordCategory  categories = KeywordCategory::All) const

Parse records of given categories.

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
Comment records are not parsed, as of today.