#include <InterpKernelUnit.hxx>
Public Member Functions | |
| UnitDataBase () | |
| const short * | getInfoForUnit (const std::string &unit, double &addFact, double &mFact) const throw (INTERP_KERNEL::Exception) |
Static Public Attributes | |
| static UnitDataBase | _uniqueMapForExpr |
| static const int | SIZE_OF_UNIT_BASE = 5 |
Private Attributes | |
| std::map< std::string, double > | _prefix_pow_10 |
| std::map< std::string, const short * > | _units_semantic |
| std::map< std::string, double > | _units_mul |
| std::map< std::string, double > | _units_add |
Static Private Attributes | |
| static const int | NB_OF_PREF_POW10 = 22 |
| static const char * | PREF_POW10 [NB_OF_PREF_POW10] |
| static const double | POW10 [NB_OF_PREF_POW10] |
| static const int | NB_OF_UNITS_RECOGN = 29 |
| static const char * | UNITS_RECOGN [NB_OF_UNITS_RECOGN] |
| static const short | PROJ_IN_BASE [NB_OF_UNITS_RECOGN][SIZE_OF_UNIT_BASE] |
| static const double | MUL_COEFF [NB_OF_UNITS_RECOGN] |
| static const double | ADD_COEFF [NB_OF_UNITS_RECOGN] |
| UnitDataBase::UnitDataBase | ( | ) |
References INTERP_KERNEL.UnitDataBase._prefix_pow_10, INTERP_KERNEL.UnitDataBase._units_add, INTERP_KERNEL.UnitDataBase._units_mul, INTERP_KERNEL.UnitDataBase._units_semantic, INTERP_KERNEL.UnitDataBase.ADD_COEFF, INTERP_KERNEL.UnitDataBase.MUL_COEFF, INTERP_KERNEL.UnitDataBase.NB_OF_PREF_POW10, INTERP_KERNEL.UnitDataBase.NB_OF_UNITS_RECOGN, INTERP_KERNEL.UnitDataBase.POW10, INTERP_KERNEL.UnitDataBase.PREF_POW10, INTERP_KERNEL.UnitDataBase.PROJ_IN_BASE, and INTERP_KERNEL.UnitDataBase.UNITS_RECOGN.
| const short * UnitDataBase::getInfoForUnit | ( | const std::string & | unit, |
| double & | addFact, | ||
| double & | mFact | ||
| ) | const throw (INTERP_KERNEL::Exception) |
References testMEDMEM.ret, and medMeshing_test.unit.
const int INTERP_KERNEL.UnitDataBase.SIZE_OF_UNIT_BASE = 5 [static] |
std::map<std::string,double> INTERP_KERNEL.UnitDataBase._prefix_pow_10 [private] |
std::map<std::string,const short *> INTERP_KERNEL.UnitDataBase._units_semantic [private] |
std::map<std::string,double> INTERP_KERNEL.UnitDataBase._units_mul [private] |
std::map<std::string,double> INTERP_KERNEL.UnitDataBase._units_add [private] |
const int INTERP_KERNEL.UnitDataBase.NB_OF_PREF_POW10 = 22 [static, private] |
const char * UnitDataBase::PREF_POW10 [static, private] |
{"y","z","a","f","p","n",InterpKernelMuAscii,InterpKernelMuUnicode,"u","m","c","d",
"da","h","k","M","G","T","P","E","Z","Y"}
const double UnitDataBase::POW10 [static, private] |
const int INTERP_KERNEL.UnitDataBase.NB_OF_UNITS_RECOGN = 29 [static, private] |
const char * UnitDataBase::UNITS_RECOGN [static, private] |
{"g","m","s","A","K",
"W","J","Hz","V","h","min","t","N","dyn",
"eV","Pa","atm","bar",InterpKernelDegreeCAscii,"C","ohm","F","S",
"T","H","P","St",InterpKernelDegreeCUnicode,InterpKernelDegreeCUnicodeWin}
const short UnitDataBase::PROJ_IN_BASE [static, private] |
const double UnitDataBase::MUL_COEFF [static, private] |
{ 1.,1.,1.,1.,1.,
1000.,1000.,1.,1000.,3600.,3600.,1e6,1000.,1e-2,
1.60217733e-16,1000.,1.01325e8,1e8,1.,1.,1000.,1e-3,
1000.,1000.,100.,1.,1.,1.,1.}
const double UnitDataBase::ADD_COEFF [static, private] |
{ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 273.15, 0., 0., 0., 0., 0., 0., 0., 0., 273.15 ,273.15}