Skip to main content
#include <dpf_api.h>

Public Member Functions

Detailed Description

Definition of a unit. Examples AveragingTest.cpp, CompleteRST.cpp, DataApis.cpp, DataExport.cpp, ModelTest.cpp, and ResultTest.cpp.

Constructor & Destructor Documentation

Unit() [1/3]

explicit Create a Unit with given name. Parameters

Unit() [2/3]

explicit Create a Unit with a given homogeneity from given unit_system. Parameters

Unit() [3/3]

explicit Create a Unit with a given homogeneity and a given symbol. Parameters

Member Function Documentation

c_str()

Returns Symbol name.

conversionFactorTo()

Returns Multiplication factor required to convert to new unit system. Parameters

divideBy()

Returns new unit that is the division of this unit by another one. Works only for in process API.

homogeneity()

Returns Measurement quantity. Examples CompleteRST.cpp, and ResultTest.cpp.

invert()

Returns new the inverse unit to this one. Works only for in process API.

isHomogeneousTo()

Returns Indication of same measurement quantities.

multiplyWith()

Returns new unit that is the product of this unit and another one. Works only for in process API.

pow()

Returns the powed unit. Works only for in process API.

shiftTo()

Returns Additive factor required to convert to new unit system. Parameters

toString()

Returns Symbol name. Examples CompleteRST.cpp.