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 InterpreterContext & context() const
static Tcl_Obj * dataObjectToTclObj(const DataObject &object)
static DataObject tclObjToDataObject(Tcl_Obj *object)
virtual void initialize(int argc, char *argv[], InterpreterContext *context, LineReader *reader)
virtual ~TclInterpreter()
virtual void addCustomCommandToInterpreter(const CustomCommand &command)
Tcl_Interp * interpreter_
Interpreter instance.
static int customCommandRedirector(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
InterpreterContext * context_
Context for interpreter.
virtual void setResultToInterpreter(const DataObject &value)
TclInterpreter & operator=(const TclInterpreter &)
Assignment not allowed.
virtual bool processScriptFile(const std::string &scriptFileName)
virtual void setVariableToInterpreter(const std::string &name, const DataObject &value)
virtual bool interpret(const std::string &commandLine)
virtual void removeCustomCommandFromInterpreter(const CustomCommand &command)
virtual DataObject variable(const std::string &name)
TclInterpreter(const TclInterpreter &)
Copying not allowed.