9 #ifndef _OP_CloneManager_h_
10 #define _OP_CloneManager_h_
20 #define OP_CLONE_CPIO_PACKET ".clones"
36 {
return theCloneManager !=
nullptr; }
38 {
return theCloneManager; }
40 { theRunningAsClone = running_as_clone; }
42 {
return theRunningAsClone; }
46 virtual void saveClones(std::ostream &os)
const = 0;
47 virtual void deleteAllClones() = 0;
51 static void removeConnectionChangeCallback(
int id);
55 static void removeImageChangeCallback(
int id);
67 static int theUniqueCallbackId;
68 static bool theRunningAsClone;
UT_Function< void(const UT_StringRef &)> OP_CloneChangeCallback
static OP_CloneManager * getInstance()
static void setRunningAsClone(bool running_as_clone)
UT_Function< void(const UT_StringRef &, const UT_StringRef &, const UT_StringRef &)> OP_CloneImageChangeCallback
static bool hasInstance()
std::function< T > UT_Function
A map of string to various well defined value types.
OP_API const UT_StringHolder OP_CLONEFUNC_NODE_GETORCREATEOUTPUT
static bool isRunningAsClone()