#include <FormulaParser.h>
Public Member Functions | |
| TFormulaParser (const TString &rFormula=L"") | |
| Retval | evalFloatValue (Float &rfValue) |
| void | setFormula (const TString &rValue) |
| void | setAngleSystemProperty (IAngle::ESystem eSystem) |
Protected Member Functions | |
| virtual | ~TFormulaParser () |
| TFormulaParser::TFormulaParser | ( | const TString & | rFormula = L"" |
) |
Creates the formula parser
| TFormulaParser::~TFormulaParser | ( | ) | [protected, virtual] |
Destroys the formula parser
| Retval TFormulaParser::evalFloatValue | ( | Float & | rfValue | ) |
evaluates the formula and returns the value
| rfValue | : return parameter of the evaluated value |
| RET_NOERROR | : value evaluated | |
| RET_INVALID_DATA | : invalid function or invalid constant used | |
| RET_OUT_OF_RANGE | : parameter range of a function is out of range | |
| RET_DIV_BY_ZERO | : division by zero | |
| RET_SYNTAX_ERROR | : invalid formula syntax |
bErrorInt
| void TFormulaParser::setFormula | ( | const TString & | rFormula | ) |
Sets a new formula
| void zeus::TFormulaParser::setAngleSystemProperty | ( | IAngle::ESystem | eSystem | ) | [inline] |
sets the angle system property (Radiant or degrees). Radiant is the default setting.