OpenASIP 2.2
|
#include <TestOsal.hh>
Public Member Functions | |
CmdTrigger () | |
CmdTrigger (const CmdTrigger &cmd) | |
virtual | ~CmdTrigger () |
virtual bool | execute (const std::vector< DataObject > &arguments) |
virtual std::string | helpText () const |
![]() | |
CustomCommand (std::string name) | |
CustomCommand (const CustomCommand &cmd) | |
virtual | ~CustomCommand () |
std::string | name () const |
void | setContext (InterpreterContext *context) |
InterpreterContext * | context () const |
void | setInterpreter (ScriptInterpreter *si) |
ScriptInterpreter * | interpreter () const |
bool | checkArgumentCount (int argumentCount, int minimum, int maximum) |
bool | checkIntegerArgument (const DataObject &argument) |
bool | checkPositiveIntegerArgument (const DataObject &argument) |
bool | checkUnsignedIntegerArgument (const DataObject &argument) |
bool | checkDoubleArgument (const DataObject &argument) |
Custom command that executes the trigger command of last loaded operation.
Definition at line 58 of file TestOsal.hh.
CmdTrigger::CmdTrigger | ( | ) |
Constructor.
Definition at line 67 of file TestOsal.cc.
|
explicit |
|
virtual |
|
virtual |
Executes the trigger command of an operation.
arguments | The arguments for the command. |
NumberFormatException | If data object conversion fails. |
Implements CustomCommand.
Definition at line 90 of file TestOsal.cc.
References assert, CustomCommand::context(), SimpleScriptInterpreter::context(), Exception::errorMessage(), OperationSimulator::instance(), NullOperation::instance(), CustomCommand::interpreter(), Operation::numberOfInputs(), Operation::numberOfOutputs(), OsalInterpreter::operation(), OperationContext::programCounter(), OperationContext::returnAddress(), OperationContext::saveReturnAddress(), ScriptInterpreter::setResult(), DataObject::setString(), and OperationSimulator::simulateTrigger().
|
virtual |
Returns the help text of trigger command.
Implements CustomCommand.
Definition at line 175 of file TestOsal.cc.