LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "quantities.h"
Static Public Attributes | |
static constexpr std::string_view | symbol = "?"sv |
Symbol of the unit (e.g. "A"). More... | |
static constexpr std::string_view | name = "unknown"sv |
Long name of unit (e.g. "ampere"). More... | |
A unit is the definition of a reference quantity to measure a dimension. For example, second or ampere.
Units are independent C++ classes which are required to present a minimal interface:
symbol
of the unit, as a static constant stringname
of the unit, as a static constant stringHere "string" is intended as an object convertible to std::string
and which itself exposes a std::string
-like behaviour.
Although units can be derived from UnitBase
, there is currently no necessity to do so since no part is shared. UnitBase
is therefore provided as an example implementation.
Definition at line 359 of file quantities.h.
|
static |
Long name of unit (e.g. "ampere").
Definition at line 363 of file quantities.h.
|
static |
Symbol of the unit (e.g. "A").
Definition at line 361 of file quantities.h.