|
vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
A label of image_metadata together with the type of the value under it. More...
#include <vitrio/image_metadata_field.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| template<std::size_t N> | |
| constexpr | image_metadata_field (const char(&label)[N]) noexcept |
| Construct a field from its label. | |
| constexpr const char * | get_label () const noexcept |
| Get the label of this field. | |
A label of image_metadata together with the type of the value under it.
Stating the type with the label, once, is what lets a value be set and got as that type and no other, through set_field, find_field and get_field. The standard fields are the constants of image_metadata_fields.
| T | The type of the value: std::int64_t for an integer, double for a real or std::string for a text. |
|
explicitconstexprnoexcept |
Construct a field from its label.
| label | The label, as a string literal: the field refers to it and does not copy it. |
|
constexprnoexcept |
Get the label of this field.