#include <vrePluginManager.h>
◆ DtVrePluginManager() [1/3]
| makVre::DtVrePluginManager::DtVrePluginManager |
( |
| ) |
|
◆ ~DtVrePluginManager()
| virtual makVre::DtVrePluginManager::~DtVrePluginManager |
( |
| ) |
|
|
virtual |
Destroys the manager and its plugin wrappers.
- Note
- Recognized plugin DLLs remain loaded until process exit.
◆ DtVrePluginManager() [2/3]
◆ DtVrePluginManager() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ initialize()
Stores the player-station application pointer for later use by plugin entry points.
- Parameters
-
| app | Non-owning pointer to the player-station application. |
◆ setPluginDirectory()
| virtual void makVre::DtVrePluginManager::setPluginDirectory |
( |
const std::string & | directory | ) |
|
|
virtual |
Sets the directory path that discoverPlugins() will scan.
- Parameters
-
| directory | Full path to the plugin directory, including a trailing path separator. |
◆ pluginDirectory()
| virtual std::string makVre::DtVrePluginManager::pluginDirectory |
( |
| ) |
const |
|
virtual |
Returns the plugin directory path.
- Returns
- The directory set by setPluginDirectory(), or an empty string if not yet set.
◆ initializePlugins()
| virtual void makVre::DtVrePluginManager::initializePlugins |
( |
| ) |
|
|
virtual |
Calls the init entry point on all plugins that have been successfully loaded.
◆ postInitializePlugins()
| virtual void makVre::DtVrePluginManager::postInitializePlugins |
( |
| ) |
|
|
virtual |
Calls the post-init entry point on all loaded plugins in load order.
◆ shutdownPlugins()
| virtual void makVre::DtVrePluginManager::shutdownPlugins |
( |
| ) |
|
|
virtual |
Calls the shutdown entry point on all loaded plugins in load order.
◆ plugins()
| const std::vector< PluginInfo > & makVre::DtVrePluginManager::plugins |
( |
| ) |
const |
Returns the list of all discovered plugins in load order.
- Returns
- Non-owning reference to the internal plugin list.
◆ loadPlugin()
| virtual bool makVre::DtVrePluginManager::loadPlugin |
( |
const std::string & | filename | ) |
|
|
virtual |
Loads a single plugin by path if it has not already been loaded.
- Parameters
-
| filename | Name or full path of the plugin library. |
- Returns
- True if the plugin was successfully loaded and has valid entry points.
◆ discoverPlugins()
| virtual void makVre::DtVrePluginManager::discoverPlugins |
( |
| ) |
|
|
virtual |
Scans the configured plugin directory for DLL files and loads each one.
Files are sorted alphabetically before loading so load order is deterministic. Already-loaded plugins are skipped. Requires setPluginDirectory() to have been called before invoking this method.
◆ myPlugins
| std::vector<PluginInfo> makVre::DtVrePluginManager::myPlugins |
|
protected |
Ordered list of all plugins discovered or explicitly loaded.
◆ myPluginDirectory
| std::string makVre::DtVrePluginManager::myPluginDirectory |
|
protected |
◆ myApp
Non-owning pointer to the player-station application.
Stored by initialize() and forwarded to each plugin's entry points.
- Note
- The lifetime of the referenced application must exceed the lifetime of this manager.
The documentation for this class was generated from the following file: