#include <nap/modulecache.h>
Public Member Functions | |
| const nap::Module * | sourceModule (const ProjectInfo &projectinfo, const std::string &moduleName, utility::ErrorState &err) |
| Handle (Handle &)=delete | |
| Handle & | operator= (const Handle &)=delete |
| Handle (Handle &&other) noexcept | |
| Handle & | operator= (Handle &&other) noexcept |
Unique handle to this process module cache. Any other thread that wants to source a module must wait until this handle is destroyed and the lock released.
| const nap::Module* sourceModule | ( | const ProjectInfo & | projectinfo, |
| const std::string & | moduleName, | ||
| utility::ErrorState & | err | ||
| ) |
Attempts to find and load a module into the current NAP process, including all module dependencies.
| projectinfo | project information resource |
| moduleName | name of the module to load |
| err | contains the error if loading operation fails |