|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
A type safe version of FormattedKeyword 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) noexcept | |
| BasicKeyword & | operator= (BasicKeyword &&rhs) noexcept=default |
| BasicKeyword & | operator= (BasicKeyword const &rhs)=default |
| 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 |
| ValueType | value |
| std::optional< std::string > | comment |
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 FormattedKeyword 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 51 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 44 of file keyword.cpp.
|
noexcept |
Definition at line 51 of file keyword.cpp.
|
noexcept |
Compares all members for inequality.
Definition at line 63 of file keyword.cpp.
|
noexcept |
Uses name property as the sorting index.
Definition at line 68 of file keyword.cpp.
|
defaultnoexcept |
|
default |
|
noexcept |
Compares all members for equality.
Definition at line 58 of file keyword.cpp.
| std::optional<std::string> daq::fits::BasicKeyword< Trait >::comment |
Definition at line 81 of file keyword.hpp.
| std::string daq::fits::BasicKeyword< Trait >::name |
Definition at line 79 of file keyword.hpp.
| ValueType daq::fits::BasicKeyword< Trait >::value |
Definition at line 80 of file keyword.hpp.