|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
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. | |
Static description of one unit, supplied by UnitTraits.
Definition at line 204 of file quantity.hpp.
| 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.
| std::string_view morph::units::UnitMeta::display |
Human display text, e.g. "kg/m³" (ExtUnits.unitUnicode).
Definition at line 210 of file quantity.hpp.
| 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.