OpenASIP
2.0
|
#include <ConditionScript.hh>
Public Member Functions | |
ConditionScript (ScriptInterpreter *interpreter, std::string scriptLine) | |
ConditionScript (ScriptInterpreter *interpreter, std::vector< std::string > &script) | |
virtual | ~ConditionScript () |
virtual bool | conditionOk () |
virtual ConditionScript * | copy () const |
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... | |
Class that contains a script that defines a condition for some action.
Definition at line 45 of file ConditionScript.hh.
ConditionScript::ConditionScript | ( | ScriptInterpreter * | interpreter, |
std::string | scriptLine | ||
) |
Constructor.
interpreter | Interpreter for the script. |
scriptLine | A line of script. |
Definition at line 46 of file ConditionScript.cc.
Referenced by copy().
ConditionScript::ConditionScript | ( | ScriptInterpreter * | interpreter, |
std::vector< std::string > & | script | ||
) |
Constructor.
interpreter | Interpreter for the script. |
script | The script. |
Definition at line 57 of file ConditionScript.cc.
|
virtual |
|
virtual |
Tests if condition is true of false.
NumberFormatException | If DataObject operation fails. |
ScriptExecutionFailure | If script execution fails. |
Definition at line 76 of file ConditionScript.cc.
References Script::execute(), Script::interpreter_, Script::script(), ScriptInterpreter::setResult(), and DataObject::stringValue().
Referenced by StopPoint::isConditionOK().
|
virtual |
Copies the condition script.
Allows dynamically bound copy.
Reimplemented in TclConditionScript.
Definition at line 99 of file ConditionScript.cc.
References ConditionScript().
Referenced by Breakpoint::copy(), Watch::copy(), and StopPoint::setCondition().