OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
CmdOutput () | |
CmdOutput (const CmdOutput &cmd) | |
virtual | ~CmdOutput () |
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 | OUTPUT_FORMAT_INT_SIGNED = "signed" |
static const std::string | OUTPUT_FORMAT_INT_UNSIGNED = "unsigned" |
static const std::string | OUTPUT_FORMAT_LONG_SIGNED = "long" |
static const std::string | OUTPUT_FORMAT_LONG_UNSIGNED = "ulong" |
static const std::string | OUTPUT_FORMAT_DOUBLE = "double" |
static const std::string | OUTPUT_FORMAT_FLOAT = "float" |
static const std::string | OUTPUT_FORMAT_HALF = "half" |
static const std::string | OUTPUT_FORMAT_BIN = "bin" |
static const std::string | OUTPUT_FORMAT_HEX = "hex" |
Custom command that executes the output command.
Output command changes the format of the output. Possible output formats are decimal, binary and hexadecimal.
Definition at line 114 of file TestOsal.hh.
CmdOutput::CmdOutput | ( | ) |
|
explicit |
|
virtual |
|
virtual |
Executes the command.
arguments | Arguments for the command. |
Implements CustomCommand.
Definition at line 294 of file TestOsal.cc.
References assert, CustomCommand::context(), SimpleScriptInterpreter::context(), CustomCommand::interpreter(), OUTPUT_FORMAT_BIN, OUTPUT_FORMAT_DOUBLE, OUTPUT_FORMAT_FLOAT, OUTPUT_FORMAT_HALF, OUTPUT_FORMAT_HEX, OUTPUT_FORMAT_INT_SIGNED, OUTPUT_FORMAT_INT_UNSIGNED, OUTPUT_FORMAT_LONG_SIGNED, OUTPUT_FORMAT_LONG_UNSIGNED, ScriptInterpreter::setResult(), and DataObject::setString().
|
virtual |
Returns the help text of the command.
Implements CustomCommand.
Definition at line 339 of file TestOsal.cc.
References CustomCommand::context(), SimpleScriptInterpreter::context(), CustomCommand::interpreter(), OUTPUT_FORMAT_BIN, OUTPUT_FORMAT_DOUBLE, OUTPUT_FORMAT_FLOAT, OUTPUT_FORMAT_HALF, OUTPUT_FORMAT_HEX, OUTPUT_FORMAT_INT_SIGNED, and OUTPUT_FORMAT_INT_UNSIGNED.
|
static |
Definition at line 124 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 121 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 122 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 123 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 125 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 117 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 118 of file TestOsal.hh.
Referenced by execute(), helpText(), and TesterContext::toOutputFormat().
|
static |
Definition at line 119 of file TestOsal.hh.
Referenced by execute(), CmdMem::execute(), and TesterContext::toOutputFormat().
|
static |
Definition at line 120 of file TestOsal.hh.
Referenced by execute(), CmdMem::execute(), and TesterContext::toOutputFormat().