24 #ifndef vtkClientServerInterpreter_h 25 #define vtkClientServerInterpreter_h 27 #include "vtkObject.h" 32 class vtkClientServerInterpreterCommand;
33 class vtkClientServerInterpreterInternals;
47 typedef vtkObjectBase* (*vtkClientServerNewInstanceFunction)(
void* ctx);
69 void PrintSelf(ostream&, vtkIndent);
76 int ProcessStream(
const unsigned char* msg,
size_t msgLength);
113 void SetLogFile(
const char* name);
114 virtual void SetLogStream(ostream* ostr);
115 vtkGetMacro(LogStream, ostream*);
127 vtkObjectBase* NewInstance(
const char* classname);
144 bool HasCommandFunction(
const char* cname);
149 int CallCommandFunction(
const char* classname, vtkObjectBase* ptr,
const char* method,
173 void ClearLastResult();
180 int Load(
const char* moduleName);
181 int Load(
const char* moduleName,
const char*
const* optionalPaths);
213 int LoadImpl(
const char* moduleName);
215 int LoadInternal(
const char* moduleName,
const char* fullPath);
222 vtkClientServerInterpreterInternals* Internal;
224 friend class vtkClientServerInterpreterCommand;
int(* vtkClientServerCommandFunction)(vtkClientServerInterpreter *, vtkObjectBase *ptr, const char *method, const vtkClientServerStream &msg, vtkClientServerStream &result, void *ctx)
The type of a command function.
Store messages for the interpreter.
A pointer to this struct is sent as call data when an ErrorEvent is invoked by the interpreter...
Run-time VTK interpreter.
vtkObjectBase *(* vtkClientServerNewInstanceFunction)(void *ctx)
The type of a new-instance function.
The callback data structure passed to observers looking for VTK object creation and deletion events...
const vtkClientServerStream * css
void(* vtkContextFreeFunction)(void *ctx)
Identifier for a ClientServer object.
vtkObjectBase * GetObjectFromID(vtkClientServerID id)
Return a pointer to a vtkObjectBase for an ID whose message contains only the one object...