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

Runtime metadata for a measure (a semantic specialization of a unit). More...

#include <descriptor.hpp>

Public Attributes

std::string_view id
 Stable identifier (e.g. "distance"). Unique per registry.
 
std::string_view base_unit_id
 Id of the unit this measure is defined in (e.g. "m").
 
std::string_view name
 Human-readable name (e.g. "Distance").
 
std::string_view formatter {}
 NOLINT(readability-redundant-member-init) Empty falls back to the base unit's formatter.
 
int default_precision {-1}
 Empty falls back to the base unit's precision.
 
std::optional< comms::Icon > icon {}
 NOLINT(readability-redundant-member-init) Optional UI icon; nullopt falls back to the unit's icon.
 
std::optional< comms::Color > color {}
 NOLINT(readability-redundant-member-init) Optional UI accent; nullopt falls back to the unit's color.
 

Detailed Description

Runtime metadata for a measure (a semantic specialization of a unit).


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