Represents the literal 80-character FITS keyword record.
More...
#include <keyword.hpp>
Represents the literal 80-character FITS keyword record.
Definition at line 129 of file keyword.hpp.
◆ daq::fits::LiteralKeyword::Components
| struct daq::fits::LiteralKeyword::Components |
Decomposed components a literal keyword.
Definition at line 134 of file keyword.hpp.
| Class Members |
|
string_view |
comment |
Comment may be empty. |
|
string_view |
name |
|
|
KeywordType |
type |
|
|
string_view |
value |
|
◆ LiteralKeyword() [1/4]
| daq::fits::LiteralKeyword::LiteralKeyword |
( |
| ) |
|
|
noexcept |
Initializes an empty record (filled with ' ' characters)
Definition at line 480 of file keyword.cpp.
◆ LiteralKeyword() [2/4]
| daq::fits::LiteralKeyword::LiteralKeyword |
( |
std::array< char, constants::RECORD_LENGTH > |
record | ) |
|
|
explicit |
Construct literal keyword from a fixed size record.
- Parameters
-
| record | FITS keyword record literal. |
Definition at line 486 of file keyword.cpp.
◆ LiteralKeyword() [3/4]
| daq::fits::LiteralKeyword::LiteralKeyword |
( |
std::string_view |
record | ) |
|
|
explicit |
Construct literal keyword from string_view.
- Note
- If string_view is empty this will be interpreted as the (valid) keyword " ".
- Parameters
-
| record | literal keyword record. |
- Exceptions
-
| std::invalid_argument | if record is invalid (size() > 80). |
Definition at line 495 of file keyword.cpp.
◆ LiteralKeyword() [4/4]
| daq::fits::LiteralKeyword::LiteralKeyword |
( |
LiteralKeyword const & |
other | ) |
|
|
noexcept |
◆ GetComponents()
| constexpr Components daq::fits::LiteralKeyword::GetComponents |
( |
| ) |
const & |
|
inlineconstexprnoexcept |
Get components of the keyword in its literal form with insignifant whitespaces removed.
Definition at line 206 of file keyword.hpp.
◆ GetName() [1/2]
◆ GetName() [2/2]
Query logical keyword name.
The logical keyword name depends on the type of keyword:
- Type::Value: Returns same value as GetName() but without trailing whitespaces.
- Type::Eso: Returns the logical keyword name following "HIEARCH ESO" up to the first "=", without leading or trailing whitespaces.
- Type::Commentary: Keywords that do not fall into
- Returns
- the logical keyword name which depends on the type of keyword and the type.
Definition at line 190 of file keyword.hpp.
◆ GetRecord() [1/2]
| constexpr std::string_view daq::fits::LiteralKeyword::GetRecord |
( |
| ) |
&& |
|
constexprdeletenoexcept |
◆ GetRecord() [2/2]
| std::string_view daq::fits::LiteralKeyword::GetRecord |
( |
| ) |
const & |
|
noexcept |
- Returns
- the FITS keyword record without trailing blank characters.
- Todo:
- Rename to GetLogicalRecord?
Definition at line 532 of file keyword.cpp.
◆ GetType()
| constexpr KeywordType daq::fits::LiteralKeyword::GetType |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator=()
◆ operator!=()
Compares inequally if keyword record in lhs is not the same as rhs (char for char).
Definition at line 545 of file keyword.cpp.
◆ operator<() [1/3]
Sort by logical keyword name (not DICD sort)
Definition at line 537 of file keyword.cpp.
◆ operator<() [2/3]
◆ operator<() [3/3]
◆ operator==()
Compares equally if keyword record in lhs is the same as rhs (char for char).
Definition at line 541 of file keyword.cpp.
The documentation for this class was generated from the following files: