Go to the documentation of this file.
34 #ifndef TTA_TCL_INTERPRETER_HH
35 #define TTA_TCL_INTERPRETER_HH
64 const std::string& name,
const DataObject& value);
66 virtual bool interpret(
const std::string& commandLine);
78 Tcl_Obj *CONST objv[]);
virtual void addCustomCommandToInterpreter(const CustomCommand &command)
virtual void removeCustomCommandFromInterpreter(const CustomCommand &command)
virtual DataObject variable(const std::string &name)
Tcl_Interp * interpreter_
Interpreter instance.
InterpreterContext * context_
Context for interpreter.
TclInterpreter & operator=(const TclInterpreter &)
Assignment not allowed.
virtual bool interpret(const std::string &commandLine)
virtual void setResultToInterpreter(const DataObject &value)
virtual InterpreterContext & context() const
virtual ~TclInterpreter()
virtual void setVariableToInterpreter(const std::string &name, const DataObject &value)
static Tcl_Obj * dataObjectToTclObj(const DataObject &object)
virtual void initialize(int argc, char *argv[], InterpreterContext *context, LineReader *reader)
static int customCommandRedirector(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static DataObject tclObjToDataObject(Tcl_Obj *object)
virtual bool processScriptFile(const std::string &scriptFileName)