ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
A type safe version of LiteralKeyword that consist of the three basic components of a FITS keyword keyword record: name, value and optional comment. More...
#include <keyword.hpp>
Public Member Functions | |
BasicKeyword ()=default | |
BasicKeyword (BasicKeyword const &)=default | |
BasicKeyword (BasicKeyword &&) noexcept=default | |
BasicKeyword (std::string name, char const *string_value, std::optional< std::string > comment=std::nullopt) | |
BasicKeyword (std::string name, ValueType value, std::optional< std::string > comment=std::nullopt) | |
BasicKeyword & | operator= (BasicKeyword &&rhs) noexcept=default |
BasicKeyword & | operator= (BasicKeyword const &rhs)=default |
constexpr KeywordNameView | GetName () const &noexcept |
Query logical keyword name. More... | |
KeywordNameView | GetName () &&=delete |
bool | operator== (BasicKeyword const &rhs) const noexcept |
Compares all members for equality. More... | |
bool | operator!= (BasicKeyword const &rhs) const noexcept |
Compares all members for inequality. More... | |
bool | operator< (BasicKeyword const &rhs) const noexcept |
Uses name property as the sorting index. More... | |
Public Attributes | |
std::string | name |
Trimmed keyword name. More... | |
ValueType | value |
std::optional< std::string > | comment |
Trimmed keyword comment. More... | |
Additional Inherited Members | |
Public Types inherited from daq::fits::BasicKeywordBase | |
using | ValueType = std::variant< std::string, int64_t, uint64_t, double, bool > |
A type safe version of LiteralKeyword that consist of the three basic components of a FITS keyword keyword record: name, value and optional comment.
It does not model any specific unit, only the value type. Therefore it is not strictly necessary to have all possible types represented in ValueType (e.g. both singel and double precision floats).
The idea is that the unit, formatting and ranges is provided provided by dictionaries.
It also typically requires a dictionary to be able to understand how to parse value
.
Definition at line 266 of file keyword.hpp.
|
default |
|
default |
|
defaultnoexcept |
daq::fits::BasicKeyword< Trait >::BasicKeyword | ( | std::string | name, |
char const * | string_value, | ||
std::optional< std::string > | comment = std::nullopt |
||
) |
Definition at line 448 of file keyword.cpp.
daq::fits::BasicKeyword< Trait >::BasicKeyword | ( | std::string | name, |
ValueType | value, | ||
std::optional< std::string > | comment = std::nullopt |
||
) |
Definition at line 456 of file keyword.cpp.
|
delete |
|
inlineconstexprnoexcept |
Query logical keyword name.
Definition at line 285 of file keyword.hpp.
|
noexcept |
Compares all members for inequality.
Definition at line 469 of file keyword.cpp.
|
noexcept |
Uses name property as the sorting index.
Definition at line 474 of file keyword.cpp.
|
defaultnoexcept |
|
default |
|
noexcept |
Compares all members for equality.
Definition at line 464 of file keyword.cpp.
std::optional<std::string> daq::fits::BasicKeyword< Trait >::comment |
Trimmed keyword comment.
Definition at line 311 of file keyword.hpp.
std::string daq::fits::BasicKeyword< Trait >::name |
Trimmed keyword name.
Definition at line 306 of file keyword.hpp.
ValueType daq::fits::BasicKeyword< Trait >::value |
Definition at line 307 of file keyword.hpp.