vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
vitrio::image_metadata_field< T > Class Template Reference

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.

Detailed Description

template<typename T>
class vitrio::image_metadata_field< T >

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.

Template Parameters
TThe type of the value: std::int64_t for an integer, double for a real or std::string for a text.

Constructor & Destructor Documentation

◆ image_metadata_field()

template<typename T>
template<std::size_t N>
vitrio::image_metadata_field< T >::image_metadata_field ( const char(&) label[N])
explicitconstexprnoexcept

Construct a field from its label.

Parameters
labelThe label, as a string literal: the field refers to it and does not copy it.

Member Function Documentation

◆ get_label()

template<typename T>
const char * vitrio::image_metadata_field< T >::get_label ( ) const
constexprnoexcept

Get the label of this field.

Returns
const char* The label, ended by a null character. Never null.

The documentation for this class was generated from the following file: