Template for management/access to plugins constructed based on a Key type and arbitrary parameters.
More...
#include <xmltooling/PluginManager.h>
|
typedef T * | Factory (const Params &) |
| Factory function for plugin.
|
|
|
void | registerFactory (const Key &type, typename PluginManager::Factory *factory) |
| Registers the factory for a given type.
|
|
void | deregisterFactory (const Key &type) |
| Unregisters the factory for a given type.
|
|
void | deregisterFactories () |
| Unregisters all registered factories.
|
|
T * | newPlugin (const Key &type, const Params &p) |
| Builds a new instance of a plugin of a given type, configuring it with the supplied parameters.
|
|
template<class T, class Key, typename Params>
class xmltooling::PluginManager< T, Key, Params >
Template for management/access to plugins constructed based on a Key type and arbitrary parameters.
- Parameters
-
T | class of plugin to manage |
Key | the key for type lookup |
Params | parameters for plugin construction |
template<class T, class Key, typename Params>
Factory function for plugin.
template<class T, class Key, typename Params>
Unregisters the factory for a given type.
- Parameters
-
type | the key to the plugin type |
template<class T, class Key, typename Params>
Builds a new instance of a plugin of a given type, configuring it with the supplied parameters.
- Parameters
-
type | the key to the plugin type |
p | parameters to configure plugin |
- Returns
- the constructed plugin
template<class T, class Key, typename Params>
Registers the factory for a given type.
- Parameters
-
type | the key to the plugin type |
factory | the factory function for the plugin type |
The documentation for this class was generated from the following file: