#include <Module.hpp>
PluginModule represents a loaded shared library in the filesystem.
Pothos::PluginModule::PluginModule |
( |
void |
| ) |
|
Pothos::PluginModule::PluginModule |
( |
const std::string & |
path | ) |
|
Create a PluginModule from a file path.
- Exceptions
-
PluginPluginModuleError | if the path does not exist |
PluginPluginModuleError | if the load fails |
- Parameters
-
path | the path to a loadable module on the file system |
std::string Pothos::PluginModule::getFilePath |
( |
void |
| ) |
const |
Get a file path for this module.
- Returns
- the file path for the shared library
std::vector<std::string> Pothos::PluginModule::getPluginPaths |
( |
void |
| ) |
const |
Get the paths that this module loaded into the plugin registry. Each path is a string that represents a path in the registry.
static PluginModule Pothos::PluginModule::safeLoad |
( |
const std::string & |
path | ) |
|
|
static |
Test load this libray module within a separate process to avoid loading something destructive within this process. If the test load succeeds, the module will be loaded locally.
- Exceptions
-
PluginPluginModuleError | if the load fails |
- Parameters
-
path | the path to a loadable module on the file system |
- Returns
- the PluginModule loaded at the given file path
The documentation for this class was generated from the following file: