9 #ifndef __HOM_clone_h__
10 #define __HOM_clone_h__
31 virtual void runAsClone(
int start_port = 0,
35 bool print_port =
false,
36 int connection_timeout_seconds = -1) = 0;
37 virtual bool isRunningAsClone() = 0;
40 SWIGOUT(%newobject createClone;)
43 virtual std::vector<HOM_ElemPtr<HOM_clone_Connection> > clones() = 0;
46 virtual void deleteClone(
const char *
id) = 0;
47 virtual void deleteDisconnectedClones() = 0;
50 virtual void addOpaqueConnectionChangeCallback(
void *callback) = 0;
52 virtual void removeOpaqueConnectionChangeCallback(
void *callback) = 0;
53 virtual void removeAllConnectionChangeCallbacks() = 0;
55 virtual std::vector<void *> opaqueConnectionChangeCallbacks() = 0;
58 virtual void addOpaqueImageChangeCallback(
void *callback) = 0;
60 virtual void removeOpaqueImageChangeCallback(
void *callback) = 0;
61 virtual void removeAllImageChangeCallbacks() = 0;
63 virtual std::vector<void *> opaqueImageChangeCallbacks() = 0;
68 void addConnectionChangeCallback(InterpreterObject callback)
69 {
self->addOpaqueConnectionChangeCallback(callback); }
70 void removeConnectionChangeCallback(InterpreterObject callback)
71 {
self->removeOpaqueConnectionChangeCallback(callback); }
74 std::vector<InterpreterObject> connectionChangeCallbacks()
76 std::vector<void *> opaque_callbacks(
77 self->opaqueConnectionChangeCallbacks());
78 std::vector<InterpreterObject> callbacks;
79 for (
int i=0; i< opaque_callbacks.size(); ++i)
80 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
84 void addImageChangeCallback(InterpreterObject callback)
85 {
self->addOpaqueImageChangeCallback(callback); }
86 void removeImageChangeCallback(InterpreterObject callback)
87 {
self->removeOpaqueImageChangeCallback(callback); }
90 std::vector<InterpreterObject> imageChangeCallbacks()
92 std::vector<void *> opaque_callbacks(
93 self->opaqueImageChangeCallbacks());
94 std::vector<InterpreterObject> callbacks;
95 for (
int i=0; i< opaque_callbacks.size(); ++i)
96 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
OIIO_API void debug(string_view str)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)