COPASI API  4.40.278
CBaseUnit Class Reference

#include <CBaseUnit.h>

Public Types

enum  Kind {
  dimensionless = 0 , meter , gram , second ,
  ampere , kelvin , item , candela ,
  avogadro , undefined
}
 
enum  Scale {
  yocto = -24 , zepto = -21 , atto = -18 , femto = -15 ,
  pico = -12 , nano = -9 , micro = -6 , milli = -3 ,
  centi = -2 , deci = -1 , zero = 0 , hecto = 2 ,
  kilo = 3 , mega = 6 , giga = 9 , tera = 12 ,
  peta = 15 , exa = 18 , zetta = 21 , yotta = 24
}
 

Static Public Member Functions

static Kind fromSymbol (const std::string &symbol)
 
static const std::string getSymbol (Kind kind)
 
static std::string prefixFromScale (int scale)
 
static Scale scaleFromPrefix (const std::string &prefix)
 

Static Private Attributes

static const char * Name []
 

Member Enumeration Documentation

◆ Kind

Enumerator
dimensionless 
meter 
gram 
second 
ampere 
kelvin 
item 
candela 
avogadro 
undefined 

◆ Scale

Enumerator
yocto 
zepto 
atto 
femto 
pico 
nano 
micro 
milli 
centi 
deci 
zero 
hecto 
kilo 
mega 
giga 
tera 
peta 
exa 
zetta 
yotta 

Member Function Documentation

◆ fromSymbol()

CBaseUnit::Kind CBaseUnit::fromSymbol ( const std::string &  symbol)
static

◆ getSymbol()

const std::string CBaseUnit::getSymbol ( Kind  kind)
static

◆ prefixFromScale()

std::string CBaseUnit::prefixFromScale ( int  scale)
static

◆ scaleFromPrefix()

CBaseUnit::Scale CBaseUnit::scaleFromPrefix ( const std::string &  prefix)
static

Member Data Documentation

◆ Name

const char * CBaseUnit::Name
staticprivate
Initial value:
=
{
"dimensionless",
"meter",
"gram",
"second",
"Ampere",
"Kelvin",
"item",
"Candela",
"Avogadro",
NULL
}

The documentation for this class was generated from the following files: