EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ readKeywords()

std::vector< std::string > readKeywords ( KeywordCategory  categories = KeywordCategory::All) const

List keywords.

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.readKeywords(~KeywordCategory::Comment);
auto keyVals = h.readKeywordValues();
auto header = h.readAll();
auto records = h.parseAll(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