xmltooling 3.2.4
|
Template for management/access to plugins constructed based on a Key type and arbitrary parameters. More...
#include <xmltooling/PluginManager.h>
Public Types | |
typedef T * | Factory(const Params &, bool deprecationSupport) |
Factory function for plugin. | |
Public Member Functions | |
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, bool deprecationSupport) const |
Builds a new instance of a plugin of a given type, configuring it with the supplied parameters. | |
Template for management/access to plugins constructed based on a Key type and arbitrary parameters.
T | class of plugin to manage |
Key | the key for type lookup |
Params | parameters for plugin construction |
|
inline |
Unregisters the factory for a given type.
type | the key to the plugin type |
|
inline |
Builds a new instance of a plugin of a given type, configuring it with the supplied parameters.
type | the key to the plugin type |
p | parameters to configure plugin |
deprecationSupport | true iff the plugin should recognize/support its deprecated features |
|
inline |
Registers the factory for a given type.
type | the key to the plugin type |
factory | the factory function for the plugin type |