dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
Loading...
Searching...
No Matches
data.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <dimval/define.hpp>
8
10 "bit",
11 "bit",
12 "bit",
13 "bit",
14 "data_size",
15 1.0,
16 ::comms::Icons::mdi::numeric_1_box_outline,
17 ::comms::Colors::mui::cyan[400])
18
20 "B",
21 "B",
22 "B",
23 "byte",
24 "data_size",
25 8.0,
26 ::comms::Icons::mdi::memory,
27 ::comms::Colors::mui::cyan[500])
Macros that expand into a CRTP unit/measure struct and a runtime auto-registration for it.
#define DIMVAL_DEFINE_UNIT(Tag, Id, Symbol, ShortName, LongName, Kind, Factor, Icon, Color,...)
Define a unit struct in ::dimval and auto-register its descriptor at static-init time.
Definition define.hpp:72