Version: 5.1.6

INTERP_KERNEL.UnitDataBase Class Reference

#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]

Constructor & Destructor Documentation

UnitDataBase::UnitDataBase (  ) 

Member Function Documentation

const short * UnitDataBase::getInfoForUnit ( const std::string &  unit,
double addFact,
double mFact 
) const throw (INTERP_KERNEL::Exception)

Field Documentation

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]
Initial value:
{"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]
Initial value:
{1e-24,1e-21,1e-18,1e-15,1e-12,1e-9,1e-6,1e-6,1e-6,1e-3,1e-2,1e-1,
                                                  1e1,1e2,1e3,1e6,1e9,1e12,1e15,1e18,1e21,1e24}
const int INTERP_KERNEL.UnitDataBase.NB_OF_UNITS_RECOGN = 29 [static, private]
const char * UnitDataBase::UNITS_RECOGN [static, private]
Initial value:
{"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]
Initial value:
  { 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]
Initial value:
  { 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}