#include <FFaUnitCalculator.H>
|
| FFaUnitCalculator (const char *n=NULL) |
|
bool | operator== (const FFaUnitCalculator &cal) const |
|
bool | isValid () const |
|
const std::string & | getName () const |
|
const std::string & | getOrigUnits () const |
|
const std::string & | getConvUnits () const |
|
template<class T > |
bool | convert (T &value, const std::string &aName) const |
|
bool | convert (double &value, const std::string &aName, int prec) const |
| Conversion with rounding to prec significant digits. More...
|
|
template<class T > |
bool | inverse (T &value, const std::string &aName) const |
| Reversed conversion. More...
|
|
double | convFactor (const std::string &aName) const |
|
std::string | origUnitName (const std::string &aName) const |
|
std::string | convUnitName (const std::string &aName) const |
|
void | addConversion (const std::string &propName, double sf, const std::string &origUnit="", const std::string &convUnit="") |
|
◆ SingleUnitMap
◆ SingleUnitMapIter
◆ FFaUnitCalculator()
FFaUnitCalculator::FFaUnitCalculator |
( |
const char * |
n = NULL | ) |
|
|
inline |
◆ addConversion()
void FFaUnitCalculator::addConversion |
( |
const std::string & |
propName, |
|
|
double |
sf, |
|
|
const std::string & |
origUnit = "" , |
|
|
const std::string & |
convUnit = "" |
|
) |
| |
◆ convert() [1/2]
bool FFaUnitCalculator::convert |
( |
double & |
value, |
|
|
const std::string & |
aName, |
|
|
int |
prec |
|
) |
| const |
Conversion with rounding to prec significant digits.
◆ convert() [2/2]
template<class T >
bool FFaUnitCalculator::convert |
( |
T & |
value, |
|
|
const std::string & |
aName |
|
) |
| const |
|
inline |
◆ convFactor()
double FFaUnitCalculator::convFactor |
( |
const std::string & |
aName | ) |
const |
|
inline |
◆ convUnitName()
std::string FFaUnitCalculator::convUnitName |
( |
const std::string & |
aName | ) |
const |
|
inline |
◆ getConvUnits()
const std::string& FFaUnitCalculator::getConvUnits |
( |
| ) |
const |
|
inline |
◆ getName()
const std::string& FFaUnitCalculator::getName |
( |
| ) |
const |
|
inline |
◆ getOrigUnits()
const std::string& FFaUnitCalculator::getOrigUnits |
( |
| ) |
const |
|
inline |
◆ inverse()
template<class T >
bool FFaUnitCalculator::inverse |
( |
T & |
value, |
|
|
const std::string & |
aName |
|
) |
| const |
|
inline |
◆ isValid()
bool FFaUnitCalculator::isValid |
( |
| ) |
const |
|
inline |
◆ operator==()
◆ origUnitName()
std::string FFaUnitCalculator::origUnitName |
( |
const std::string & |
aName | ) |
const |
|
inline |
◆ operator<<
◆ operator>>
◆ convGroup
std::string FFaUnitCalculator::convGroup |
|
private |
◆ myConvFactors
◆ name
std::string FFaUnitCalculator::name |
|
private |
◆ origGroup
std::string FFaUnitCalculator::origGroup |
|
private |
The documentation for this class was generated from the following files: