OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
OsalInterpreter () | |
virtual | ~OsalInterpreter () |
Operation & | operation (const std::string &name) |
Public Member Functions inherited from SimpleScriptInterpreter | |
SimpleScriptInterpreter () | |
virtual | ~SimpleScriptInterpreter () |
virtual void | initialize (int argc, char *argv[], InterpreterContext *context, LineReader *reader) |
virtual void | setVariableToInterpreter (const std::string &name, const DataObject &value) |
virtual DataObject | variable (const std::string &name) |
virtual bool | interpret (const std::string &commandLine) |
virtual void | setResultToInterpreter (const DataObject &value) |
virtual InterpreterContext & | context () const |
Public Member Functions inherited from ScriptInterpreter | |
ScriptInterpreter () | |
virtual | ~ScriptInterpreter () |
virtual void | addCustomCommand (CustomCommand *command) |
virtual void | removeCustomCommand (const std::string &commandName) |
virtual CustomCommand * | customCommand (const std::string &commandName) |
virtual void | setResult (DataObject *result) |
virtual void | setResult (const std::string &result) |
virtual void | setResult (int result) |
virtual void | setResult (double result) |
virtual std::string | result () |
virtual void | setError (bool state) |
virtual void | setError (std::string errorMessage) |
virtual bool | error () const |
virtual void | setVariable (const std::string &interpreterVariableName, const std::string &value) |
virtual void | setVariable (const std::string &interpreterVariableName, int value) |
virtual std::string | variableStringValue (const std::string &interpreterVariableName) |
virtual int | variableIntegerValue (const std::string &interpreterVariableName) |
virtual bool | processScriptFile (const std::string &scriptFileName) |
virtual void | finalize () |
virtual void | setLineReader (LineReader *reader) |
virtual LineReader * | lineReader () const |
std::vector< std::string > | customCommandsSortedByName () |
Private Attributes | |
OperationPool * | pool_ |
Used to load operations. More... | |
Operation * | operation_ |
Last loaded operation. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SimpleScriptInterpreter | |
virtual void | addCustomCommandToInterpreter (const CustomCommand &command) |
virtual void | removeCustomCommandFromInterpreter (const CustomCommand &command) |
Interpreter for test_osal.
Definition at line 249 of file TestOsal.hh.
OsalInterpreter::OsalInterpreter | ( | ) |
Constructor.
Definition at line 369 of file TestOsal.cc.
References NullOperation::instance(), operation_, and pool_.
|
virtual |
Operation & OsalInterpreter::operation | ( | const std::string & | name | ) |
Loads an operation and return a reference to it.
name | The name of the operation. |
Definition at line 388 of file TestOsal.cc.
References Operation::behavior(), SimpleScriptInterpreter::context(), OperationBehavior::createState(), NullOperation::instance(), Operation::name(), OperationPool::operation(), operation_, TesterContext::operationContext(), and pool_.
Referenced by CmdTrigger::execute(), and CmdReset::execute().
|
private |
Last loaded operation.
Definition at line 260 of file TestOsal.hh.
Referenced by operation(), and OsalInterpreter().
|
private |
Used to load operations.
Definition at line 258 of file TestOsal.hh.
Referenced by operation(), OsalInterpreter(), and ~OsalInterpreter().