morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::units::UnitMeta Struct Reference

Static description of one unit, supplied by UnitTraits. More...

#include <quantity.hpp>

Public Attributes

std::string_view id
 Stable ascii identifier, e.g. "kg_per_m3". Appears in JSON Schemas (ExtUnits.unitAscii); part of the protocol vocabulary.
std::string_view display
 Human display text, e.g. "kg/m³" (ExtUnits.unitUnicode).
std::uint32_t defaultDecimals {3}
 Default decimal places for parsing/formatting values of this unit; surfaces in schemas as x-decimalPlaces.

Detailed Description

Static description of one unit, supplied by UnitTraits.

Definition at line 204 of file quantity.hpp.

Member Data Documentation

◆ id

std::string_view morph::units::UnitMeta::id

Stable ascii identifier, e.g. "kg_per_m3". Appears in JSON Schemas (ExtUnits.unitAscii); part of the protocol vocabulary.

Definition at line 207 of file quantity.hpp.

◆ display

std::string_view morph::units::UnitMeta::display

Human display text, e.g. "kg/m³" (ExtUnits.unitUnicode).

Definition at line 210 of file quantity.hpp.

◆ defaultDecimals

std::uint32_t morph::units::UnitMeta::defaultDecimals {3}

Default decimal places for parsing/formatting values of this unit; surfaces in schemas as x-decimalPlaces.

Definition at line 214 of file quantity.hpp.


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