![]() |
EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <KeywordCategory.h>
Keyword categories and related tools.
Can be used as a mask to combine different categories, e.g.:
Public Member Functions | |
| bool | operator== (KeywordCategory rhs) const |
| Check equality. | |
| bool | operator!= (KeywordCategory rhs) const |
| Check inequality. | |
| KeywordCategory | operator| (KeywordCategory rhs) const |
| Bit-wise OR operator for masking. | |
| KeywordCategory & | operator|= (KeywordCategory rhs) |
| In-place bit-wise OR operator for masking. | |
| KeywordCategory | operator& (KeywordCategory rhs) const |
| Bit-wise AND operator for masking. | |
| KeywordCategory & | operator&= (KeywordCategory rhs) |
| In-place bit-wise AND operator for masking. More... | |
| KeywordCategory | operator~ () const |
| Bit-wise binary NOT operator for masking. More... | |
| operator bool () const | |
| Cast to bool. More... | |
Static Public Member Functions | |
| static std::vector< std::string > | filterCategories (const std::vector< std::string > &keywords, KeywordCategory categories) |
| Keep only keywords of given categories. More... | |
| static bool | belongsCategories (const std::string &keyword, KeywordCategory categories) |
| Check whether a keyword is of any of the given categories. More... | |
| static bool | matches (const std::string &test, const std::string &ref) |
| Check whether a test keyword matches a reference keyword. More... | |
Static Public Attributes | |
| static const KeywordCategory | Mandatory |
| Mandatory standard keyword. | |
| static const KeywordCategory | Reserved |
| Optional standard keywords excluding COMMENT and HISTORY. | |
| static const KeywordCategory | Comment |
| COMMENT and HISTORY keywords (non-valued reserved keywords). | |
| static const KeywordCategory | User |
| User-defined keywords. | |
| static const KeywordCategory | None |
| No keyword. | |
| static const KeywordCategory | All |
| All keywords. | |
Protected Member Functions | |
| KeywordCategory (int category) | |
| Constructor. | |