zeus::TFormulaParser Class Reference

#include <FormulaParser.h>

List of all members.

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 ()


Detailed Description

Parses a formula and evaluates its value

Constructor & Destructor Documentation

TFormulaParser::TFormulaParser ( const TString &  rFormula = L""  ) 

Creates the formula parser

TFormulaParser::~TFormulaParser (  )  [protected, virtual]

Destroys the formula parser


Member Function Documentation

Retval TFormulaParser::evalFloatValue ( Float &  rfValue  ) 

evaluates the formula and returns the value

Parameters:
rfValue : return parameter of the evaluated value
Return values:
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.


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:39 2009