OpenASIP
2.0
|
#include <ExpressionScript.hh>
Public Member Functions | |
ExpressionScript (ScriptInterpreter *interpreter, std::string scriptLine) | |
ExpressionScript (ScriptInterpreter *interpreter, std::vector< std::string > &script) | |
virtual | ~ExpressionScript () |
bool | resultChanged () |
Public Member Functions inherited from Script | |
Script (ScriptInterpreter *interpreter, std::string scriptLine) | |
Script (ScriptInterpreter *interpreter, std::vector< std::string > &script) | |
virtual | ~Script () |
virtual DataObject | execute () |
DataObject | lastResult () |
virtual std::vector< std::string > | script () const |
Additional Inherited Members | |
Protected Attributes inherited from Script | |
ScriptInterpreter * | interpreter_ |
Interpreter executing the commands. More... | |
ExpressionScript contains a script which changes can be inspected.
Definition at line 44 of file ExpressionScript.hh.
ExpressionScript::ExpressionScript | ( | ScriptInterpreter * | interpreter, |
std::string | scriptLine | ||
) |
Constructor.
interpreter | The interpreter for the script. |
scriptLine | A line of script. |
Definition at line 45 of file ExpressionScript.cc.
ExpressionScript::ExpressionScript | ( | ScriptInterpreter * | interpreter, |
std::vector< std::string > & | script | ||
) |
Constructor.
interpreter | The interpreter for the script. |
script | The script. |
Definition at line 56 of file ExpressionScript.cc.
|
virtual |
bool ExpressionScript::resultChanged | ( | ) |
Returns true, if the result of the script has changed.
ScriptExecutionFailure | If the execution of the script fails. |
NumberFormatException | If DataObject operation fails. |
Definition at line 75 of file ExpressionScript.cc.
References Script::execute(), Script::interpreter_, Script::lastResult(), and ScriptInterpreter::setResult().
Referenced by Watch::isTriggered().