96 cUnitConverter(
char const* _kind,
char const* _name,
char const* _symbol,
double _factor = 1.0,
double _offset = 0.0,
int _decimal_places=1 );
103 double ToExternal(
double internal )
const;
124 std::vector<double> ToExternal( std::vector<double>
const&
internal )
const;
132 double ToInternal(
double external )
const;
153 std::vector<double> ToInternal( std::vector<double>
const& external )
const;
157 char const* GetKind(
void )
const;
161 char const* GetName(
void )
const;
165 char const* GetSymbol(
void )
const;
170 double GetFactor(
void )
const;
174 double GetOffset(
void )
const;
178 int GetDecimalPlaces(
void )
const;
Unit conversion class to convert values between physical unit systems.
double(cUnitConverter::* pDoubleUnitConverterFunction)(double) const
Type of a pointer to a function like 'double SDH::cUnitConverter::ToExternal( double ) const' or 'dou...
cUnitConverter const uc_identity
Identity converter (internal = external)
char const * symbol
the symbol of the external unit (something like "deg" or "ms")
A simple vector implementation.
char const * name
the name of the external unit (something like "degrees" or "milliseconds")
#define NAMESPACE_SDH_START
double offset
the conversion offset from internal to external units
int decimal_places
A usefull number of decimal places for printing values in the external unit system.
Interface of class #SDH::cSimpleVector.
char const * kind
the kind of unit to be converted (something like "angle" or "time")
#define NAMESPACE_SDH_END
This file contains settings to make the SDHLibrary compile on differen systems:
double factor
the conversion factor from internal to external units