Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.UnitLib2.Context Class Reference

Static Public Member Functions

static void BuildContext ()
 
static void BuildContext (XmlDocument doc)
 
static double ConvertFromSI (string to, double value)
 Converts value in SI units to the dimensions specified by the expression string (to) More...
 
static double ConvertToSI (string from, double value)
 
static XmlDocument DumpContext ()
 
static uint GetDim (string p)
 Returns an uint from a string in si units for example this method can take as an input meters/seconds and return the corresponding uint More...
 
static Dimension GetDimension (string expression)
 This methos creates an instance of a Dimension object based on the input string More...
 

Member Function Documentation

static double Greet.UnitLib2.Context.ConvertFromSI ( string  to,
double  value 
)
static

Converts value in SI units to the dimensions specified by the expression string (to)

Parameters
from
to
valuein SI units
Returns
static uint Greet.UnitLib2.Context.GetDim ( string  p)
static

Returns an uint from a string in si units for example this method can take as an input meters/seconds and return the corresponding uint

Parameters
p
Returns
static Dimension Greet.UnitLib2.Context.GetDimension ( string  expression)
static

This methos creates an instance of a Dimension object based on the input string

Parameters
expressionExample: kg^1*lb/(m^(-1))
Returns

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