HDK
|
#include <scriptModuleLoader.h>
Public Types | |
typedef TfScriptModuleLoader | This |
Public Member Functions | |
TF_API void | RegisterLibrary (TfToken const &name, TfToken const &moduleName, std::vector< TfToken > const &predecessors) |
TF_API void | LoadModules () |
TF_API void | LoadModulesForLibrary (TfToken const &name) |
TF_API pxr_boost::python::dict | GetModulesDict () const |
TF_API void | WriteDotFile (std::string const &file) const |
![]() | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Static Public Member Functions | |
static TF_API This & | GetInstance () |
Return the singleton instance. More... | |
Friends | |
class | TfSingleton< This > |
Additional Inherited Members | |
![]() | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Provides low-level facilities for shared libraries with script bindings to register themselves with their dependences, and provides a mechanism whereby those script modules will be loaded when necessary. Currently, this is when one of our script modules is loaded, when TfPyInitialize is called, and when Plug opens shared libraries.
Generally, user code will not make use of this.
Definition at line 41 of file scriptModuleLoader.h.
Definition at line 45 of file scriptModuleLoader.h.
Return the singleton instance.
Definition at line 48 of file scriptModuleLoader.h.
TF_API pxr_boost::python::dict TfScriptModuleLoader::GetModulesDict | ( | ) | const |
Return a python dict containing all currently known modules under their canonical names.
Load all the script modules for any libraries registered using RegisterLibrary if necessary. Loads the modules in dependency order as defined in RegisterLibrary.
Load all the script modules for any libraries registered using RegisterLibrary that depend on library name.
TF_API void TfScriptModuleLoader::RegisterLibrary | ( | TfToken const & | name, |
TfToken const & | moduleName, | ||
std::vector< TfToken > const & | predecessors | ||
) |
Register a library named name and with script module moduleName and libraries which must be loaded first predecessors. The script module will be loaded when necessary. This should generally not be called by user code.
Write a graphviz dot-file for the dependency graph of all currently registered libraries/modules to file.
|
friend |
Definition at line 82 of file scriptModuleLoader.h.