35 virtual void installFile(
const char *file_path,
36 const char *oplibraries_file = NULL,
37 bool change_oplibraries_file =
true,
38 bool force_use_assets =
false) = 0;
41 virtual void uninstallFile(
const char *file_path,
42 const char *oplibraries_file = NULL,
43 bool change_oplibraries_file =
true) = 0;
45 virtual void reloadFile(
const char *file_path) = 0;
46 virtual void reloadAllFiles(
bool rescan =
true) = 0;
48 virtual void reloadNamespaceOrder() = 0;
50 virtual void expandToDirectory(
const char *file_path,
51 const char *directory_path) = 0;
53 virtual void collapseFromDirectory(
const char *file_path,
54 const char *directory_path) = 0;
56 virtual std::vector<std::string> loadedFiles() = 0;
58 virtual void renameSource(
const char *oplibraries_file,
59 const char *source_name = NULL) = 0;
61 virtual std::vector<HOM_ElemPtr<HOM_HDADefinition> >
62 definitionsInFile(
const char *file_path) = 0;
64 virtual std::vector<std::string> componentsFromFullNodeTypeName(
65 const char *node_type_name) = 0;
67 const char *scope_node_type,
68 const char *name_space,
72 virtual void changeCurrentStoreUser(
const char *new_user) = 0;
74 virtual bool safeguardHDAs() = 0;
75 virtual void setSafeguardHDAs(
bool on) = 0;
78 virtual void addOpaqueEventCallback(
79 const std::vector<HOM_EnumValue *> &event_types,
void *py_callback) = 0;
81 virtual void removeOpaqueEventCallback(
82 const std::vector<HOM_EnumValue *> &event_types,
void *py_callback) = 0;
83 virtual void removeAllEventCallbacks() = 0;
85 virtual std::vector<std::pair<std::vector<HOM_EnumValue *>,
void *> >
86 opaqueEventCallbacks() = 0;
93 void addEventCallback(
94 const std::vector<HOM_EnumValue *> &event_types,
95 InterpreterObject callback)
96 {
self->addOpaqueEventCallback(event_types, callback); }
98 void removeEventCallback(
99 const std::vector<HOM_EnumValue *> &event_types,
100 InterpreterObject callback)
101 {
self->removeOpaqueEventCallback(event_types, callback); }
103 std::vector<std::pair<std::vector<HOM_EnumValue *>, InterpreterObject> >
106 std::vector<std::pair<std::vector<HOM_EnumValue *>,
void *> >
107 opaque_callbacks(self->opaqueEventCallbacks());
109 std::vector<std::pair<std::vector<HOM_EnumValue *>, InterpreterObject> >
111 for (
int i=0; i< opaque_callbacks.size(); ++i)
112 callbacks.push_back(std::make_pair(
113 opaque_callbacks[i].first,
114 (InterpreterObject)opaque_callbacks[i].second));
120 #ifdef ENABLE_LICENSED_ASSETS
122 virtual void encryptAsset(
124 const char *file_path,
126 const char *password,
127 const std::vector<std::string> &license_names,
128 bool compile_basic =
true,
129 bool compile_vopnets =
true,
130 bool compile_channels =
true,
131 bool compile_nodenames =
true) = 0;
133 SWIGOUT(%kwargs createEntitlement;)
134 virtual void createEntitlement(
136 const char *password,
137 const char *license_name,
138 const char *entitled_email,
140 double expiry = 0.0
f) = 0;
142 SWIGOUT(%kwargs availableEntitlements;)
143 virtual std::vector<std::string> availableEntitlements(
145 const char *password) = 0;
147 SWIGOUT(%kwargs redeemEntitlements;)
148 virtual void redeemEntitlements(
150 const char *password,
151 const char *license_file = NULL,
152 const std::vector<std::string> &entitlements =
153 std::vector<std::string>()) = 0;
154 #endif // ENABLE_LICENSED_ASSETS
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
GLuint const GLchar * name
GT_API const UT_StringHolder version
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)