The plugin registry allows the dynamic registration of plugins at runtime. A plugin is a provider of a specific type T, which defines the plugin interface. Plugins use [[maybe_unused]] static T::Add<PluginXType> pluginX; to register them self to the registry.
More...
#include <PluginRegistry.hpp>
|
static std::unique_ptr< T > & | getPlugin (std::string name) |
| Returns an existing instance of this plugin. More...
|
|
static std::list< std::string > & | getPluginNames () |
| Returns the list of all plugins. More...
|
|
static bool | hasPlugin (std::string name) |
| Checks if a specific plugin was registered. More...
|
|
template<typename T>
class NES::Util::NamedPluginRegistry< T >
The plugin registry allows the dynamic registration of plugins at runtime. A plugin is a provider of a specific type T, which defines the plugin interface. Plugins use [[maybe_unused]] static T::Add<PluginXType> pluginX; to register them self to the registry.
- Template Parameters
-
◆ getPlugin()
Returns an existing instance of this plugin.
- Parameters
-
- Returns
- std::unique_ptr<T>
References NES_THROW_RUNTIME_ERROR.
◆ getPluginNames()
Returns the list of all plugins.
- Returns
- std::list<std::string>
◆ hasPlugin()
Checks if a specific plugin was registered.
- Parameters
-
- Returns
- bool
The documentation for this class was generated from the following file: