dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
Loading...
Searching...
No Matches
descriptor.hpp File Reference

Runtime metadata structs for units and measures. More...

#include <commons/color.hpp>
#include <commons/icon.hpp>
#include <optional>
#include <string_view>
Include dependency graph for descriptor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dimval::UnitDescriptor
 Runtime metadata for a unit. More...
 
struct  dimval::MeasureDescriptor
 Runtime metadata for a measure (a semantic specialization of a unit). More...
 

Typedefs

using dimval::detail::icon_field_t = std::optional< comms::Icon >
 Field types for the optional UI metadata.
 

Detailed Description

Runtime metadata structs for units and measures.

Typedef Documentation

◆ icon_field_t

using dimval::detail::icon_field_t = typedef std::optional<comms::Icon>

Field types for the optional UI metadata.

The DIMVAL_DEFINE_* macros refer to these aliases rather than spelling comms::Icon / comms::Color directly: those macros take parameters literally named Icon and Color, which would otherwise be token-substituted inside the type name.