OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
CmdRegister () | |
CmdRegister (const CmdRegister &cmd) | |
virtual | ~CmdRegister () |
virtual bool | execute (const std::vector< DataObject > &arguments) |
virtual std::string | helpText () const |
Public Member Functions inherited from CustomCommand | |
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) |
Static Public Attributes | |
static const std::string | REGISTER_PROGRAM_COUNTER = "programcounter" |
static const std::string | REGISTER_RETURN_ADDRESS = "returnaddress" |
Custom command for showing register values.
There are currently two register values which can asked: program counter and return address.
Definition at line 145 of file TestOsal.hh.
CmdRegister::CmdRegister | ( | ) |
|
explicit |
|
virtual |
|
virtual |
Executes the command.
Output is the value of given register.
arguments | Arguments for the command. |
NumberFormatException | If DataObject conversion fails. |
Implements CustomCommand.
Definition at line 643 of file TestOsal.cc.
References assert, CustomCommand::context(), SimpleScriptInterpreter::context(), CustomCommand::interpreter(), REGISTER_PROGRAM_COUNTER, REGISTER_RETURN_ADDRESS, ScriptInterpreter::setResult(), and DataObject::setString().
|
virtual |
Returns the help text of the command.
Implements CustomCommand.
Definition at line 690 of file TestOsal.cc.
References REGISTER_PROGRAM_COUNTER, and REGISTER_RETURN_ADDRESS.
|
static |
Definition at line 148 of file TestOsal.hh.
Referenced by execute(), and helpText().
|
static |
Definition at line 149 of file TestOsal.hh.
Referenced by execute(), and helpText().