An expression evaluator.
More...
#include <murl_util_evaluator.h>
◆ AddConstants()
virtual Bool Murl::Util::Evaluator::AddConstants |
( |
const IAttributes * |
constants | ) |
|
|
virtual |
Add a set of user-defined constants used during evaluation.
- Parameters
-
constants | The user-defined constants. |
- Returns
- true if successful.
◆ AddVariables()
virtual Bool Murl::Util::Evaluator::AddVariables |
( |
IAttributes * |
variables | ) |
|
|
virtual |
Add a set of user-defined variables used during evaluation.
- Parameters
-
variables | The user-defined variables. |
- Returns
- true if successful.
◆ Update()
virtual Bool Murl::Util::Evaluator::Update |
( |
| ) |
|
|
virtual |
Update the evaluator.
Whenever an input constant or variable has changed, this method must be called prior to Evaluate() to reflect the actual changes.
- Returns
- true if successful.
◆ Evaluate()
virtual Bool Murl::Util::Evaluator::Evaluate |
( |
const String & |
expression, |
|
|
String & |
result |
|
) |
| |
|
virtual |
Evaluate a given expression string.
- Parameters
-
expression | The expression string to evaluate |
result | A reference to a string receiving the result. |
- Returns
- true if successful.
The documentation for this class was generated from the following file: