MI - Fimex
|
#include <UnitsConverter.h>
Public Member Functions | |
virtual | ~UnitsConverter () |
virtual double | convert (double from)=0 |
virtual bool | isLinear ()=0 |
virtual void | getScaleOffset (double &scale, double &offset)=0 |
double | operator() (double from) |
The UnitsConverter interface is used to convert values from one unit to another.
Implementations of this class can only be retrieved from Units().
|
inlinevirtual |
References convert(), getScaleOffset(), and isLinear().
|
pure virtual |
convert a value from the input unit to an output-unit
from | value in the 'from' unit |
Referenced by operator()(), and ~UnitsConverter().
|
pure virtual |
|
pure virtual |
check if the converter is linear (representable by scale & offset)
Referenced by ~UnitsConverter().
|
inline |