Go to the documentation of this file.
33 #ifndef TTA_SIMPLE_SCRIPT_INTERPRETER_HH
34 #define TTA_SIMPLE_SCRIPT_INTERPRETER_HH
61 const std::string& name,
const DataObject& value);
64 virtual bool interpret(
const std::string& commandLine);
virtual DataObject variable(const std::string &name)
VariableMap variables_
Holds all the variables given to interpreter.
InterpreterContext * context_
Context for interpreter.
virtual ~SimpleScriptInterpreter()
virtual InterpreterContext & context() const
virtual void initialize(int argc, char *argv[], InterpreterContext *context, LineReader *reader)
virtual void addCustomCommandToInterpreter(const CustomCommand &command)
std::map< std::string, std::string > VariableMap
Map for variables.
virtual void removeCustomCommandFromInterpreter(const CustomCommand &command)
virtual void setVariableToInterpreter(const std::string &name, const DataObject &value)
SimpleScriptInterpreter()
virtual bool interpret(const std::string &commandLine)
virtual void setResultToInterpreter(const DataObject &value)
SimpleScriptInterpreter & operator=(const ScriptInterpreter &)
Assignment not allowed.