|
openDAQ
Open data acquisition platform
|
Describes a measurement unit with IDs as defined in Codes for Units of Measurement used in International Trade. Unit objects implement the Struct methods internally and are Core type ctStruct.
More...
Inherits ObjectPtr< IUnit >.
Describes a measurement unit with IDs as defined in Codes for Units of Measurement used in International Trade. Unit objects implement the Struct methods internally and are Core type ctStruct.
Public Member Functions | |
| daq::Int | getId () const |
| Gets the unit ID as defined in Codes for Units of Measurement used in International Trade. More... | |
| daq::StringPtr | getSymbol () const |
| Gets the symbol of the unit, i.e. "m/s". More... | |
| daq::StringPtr | getName () const |
| Gets the full name of the unit, i.e. "meters per second". More... | |
| daq::StringPtr | getQuantity () const |
| Gets the quantity represented by the unit, i.e. "Velocity". More... | |
|
inline |
Gets the unit ID as defined in Codes for Units of Measurement used in International Trade.
Returns -1 if the unit id is not available.
|
inline |
Gets the full name of the unit, i.e. "meters per second".
nullptr if not set.
|
inline |
Gets the quantity represented by the unit, i.e. "Velocity".
nullptr if not set.
|
inline |
Gets the symbol of the unit, i.e. "m/s".