iLand
|
ExpressionWrapper is the base class for exposing C++ elements to the built-in Expression engine. More...
#include <expressionwrapper.h>
Public Member Functions | |
ExpressionWrapper () | |
virtual | ~ExpressionWrapper () |
virtual const QStringList | getVariablesList () |
virtual double | value (const int variableIndex) |
virtual double | valueByName (const QString &variableName) |
virtual int | variableIndex (const QString &variableName) |
ExpressionWrapper is the base class for exposing C++ elements to the built-in Expression engine.
The base class for objects that can be used within Expressions.
See TreeWrapper for an example.
Derived from ExpressionWrapper are wrappers for e.g. Trees or ResourceUnits. They must provide a getVariablesList() and a value() function. Note: the must also provide "virtual double value(const QString &variableName) { return value(variableName); }" because it seems to be not possible in C++ to use functions from derived and base class simultaneously that only differ in the argument signature.
ExpressionWrapper::ExpressionWrapper | ( | ) |
|
inlinevirtual |
|
virtual |
Reimplemented in ABE::FOMEWrapper, BITE::BiteWrapperCore, BITE::BiteWrapper, TreeWrapper, RUWrapper, and SaplingWrapper.
|
virtual |
Reimplemented in ABE::FOMEWrapper, BITE::BiteWrapper, TreeWrapper, RUWrapper, and SaplingWrapper.
|
virtual |
|
virtual |