|
dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
|
Runtime metadata structs for units and measures. More...
#include <commons/color.hpp>#include <commons/icon.hpp>#include <optional>#include <string_view>

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. | |
Runtime metadata structs for units and measures.
| 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.