This manager provides utilities for plugin loading.
More...
#include <PluginManager.h>
|
static void * | openLibrary (const std::string &path) |
| Opens a shared library.
|
|
static void * | lookupLibrary (void *handle, const std::string &name) |
| Looks up a symbol from an opened library.
|
|
static void | closeLibrary (void *handle) |
| Closes an opened shared library.
|
|
static bool | loadPlugin (const std::string &path) |
| Loads a plugin from a file.
|
|
static void | loadPlugins (const std::string &path="") |
| Loads all plugins found in a folder.
|
|
This manager provides utilities for plugin loading.
◆ closeLibrary()
static void PluginManager::closeLibrary |
( |
void * | handle | ) |
|
|
static |
Closes an opened shared library.
- Parameters
-
handle | The handle to the library to be closed. |
◆ loadPlugin()
static bool PluginManager::loadPlugin |
( |
const std::string & | path | ) |
|
|
static |
Loads a plugin from a file.
- Parameters
-
path | The path to the file. |
- Returns
- Whether the file could successfully be loaded.
◆ loadPlugins()
static void PluginManager::loadPlugins |
( |
const std::string & | path = "" | ) |
|
|
static |
Loads all plugins found in a folder.
- Parameters
-
path | The path to the folder containing the plugins. |
◆ lookupLibrary()
static void * PluginManager::lookupLibrary |
( |
void * | handle, |
|
|
const std::string & | name ) |
|
static |
Looks up a symbol from an opened library.
- Parameters
-
handle | The handle to the opened library. |
name | The name of the symbol to look up. |
- Returns
- The symbol or nullptr if the symbol was not found.
◆ openLibrary()
static void * PluginManager::openLibrary |
( |
const std::string & | path | ) |
|
|
static |
Opens a shared library.
- Parameters
-
path | The path to the file. |
- Returns
- A handle to the library or nullptr if opening failed.
The documentation for this class was generated from the following file: