Go to the documentation of this file.
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;
char const * symbol
the symbol of the external unit (something like "deg" or "ms")
#define NAMESPACE_SDH_END
int decimal_places
A usefull number of decimal places for printing values in the external unit system.
double(cUnitConverter::* pDoubleUnitConverterFunction)(double) const
Type of a pointer to a function like 'double SDH::cUnitConverter::ToExternal( double ) const' or 'dou...
A simple vector implementation.
char const * kind
the kind of unit to be converted (something like "angle" or "time")
const cUnitConverter uc_identity
Identity converter (internal = external)
Interface of class #SDH::cSimpleVector.
#define NAMESPACE_SDH_START
double offset
the conversion offset from internal to external units
This file contains settings to make the SDHLibrary compile on differen systems:
char const * name
the name of the external unit (something like "degrees" or "milliseconds")
double factor
the conversion factor from internal to external units
Unit conversion class to convert values between physical unit systems.
sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58