UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
util::string::UnitQuantity Struct Reference

Unit - quantity -physical dimension relation. More...

#include <unithelper.h>

Public Attributes

std::string Quantity
 Quantity name.
std::string Unit
 Unit of measure (ASCII not UTF8 coded).
double Factor = 1
 Factor.
double Offset = 0
 Offset.
int Meter = 0
 Physical dimension (m)
int Kilogram = 0
 Physical dimension (kg)
int Seconds = 0
 Physical dimension (s)
int Kelvin = 0
 Physical dimension (K)
int Ampere = 0
 Physical dimension (A)
int Mol = 0
 Physical dimension (mol)
int Candela = 0
 Physical dimension (cd)

Detailed Description

Quantity has the same physical dimension with one or more units. Example: 'Length' is a quantity while 'm', 'km' and 'miles' are units. The factor and offset defines the conversion between the units. The 'mile' unit has the factor = 1609.344, offset = 0 and physical dimension meter = 1.


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