|
ifw-daq 3.1.0
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>
Inheritance diagram for daq::fits::BasicKeyword< Trait >: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. | |
| KeywordNameView | GetName () &&=delete |
| bool | operator== (BasicKeyword const &rhs) const noexcept |
| Compares all members for equality. | |
| bool | operator!= (BasicKeyword const &rhs) const noexcept |
| Compares all members for inequality. | |
| bool | operator< (BasicKeyword const &rhs) const noexcept |
| Uses name property as the sorting index. | |
Public Attributes | |
| std::string | name |
| Trimmed keyword name. | |
| ValueType | value |
| std::optional< std::string > | comment |
| Trimmed keyword comment. | |
Additional Inherited Members | |
Public Types inherited from daq::fits::BasicKeywordBase | |
| using | ValueType = std::variant< std::string, std::int64_t, std::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 275 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 576 of file keyword.cpp.
| daq::fits::BasicKeyword< Trait >::BasicKeyword | ( | std::string | name, |
| ValueType | value, | ||
| std::optional< std::string > | comment = std::nullopt |
||
| ) |
Definition at line 584 of file keyword.cpp.
|
delete |
|
inlineconstexprnoexcept |
Query logical keyword name.
Definition at line 294 of file keyword.hpp.
|
noexcept |
Compares all members for inequality.
Definition at line 597 of file keyword.cpp.
|
noexcept |
Uses name property as the sorting index.
Definition at line 602 of file keyword.cpp.
|
defaultnoexcept |
|
default |
|
noexcept |
Compares all members for equality.
Definition at line 592 of file keyword.cpp.
| std::optional<std::string> daq::fits::BasicKeyword< Trait >::comment |
Trimmed keyword comment.
Definition at line 320 of file keyword.hpp.
| std::string daq::fits::BasicKeyword< Trait >::name |
Trimmed keyword name.
Definition at line 315 of file keyword.hpp.
| ValueType daq::fits::BasicKeyword< Trait >::value |
Definition at line 316 of file keyword.hpp.