#include <xmltooling/PluginManager.h>
Public Member Functions | |
| typedef T * | Factory (const Params &, bool deprecationSupport) |
| 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, bool deprecationSupport) const |
| Builds a new instance of a plugin of a given type, configuring it with the supplied parameters. | |
| T | class of plugin to manage | |
| Key | the key for type lookup | |
| Params | parameters for plugin construction |
| typedef T* xmltooling::PluginManager< T, Key, Params >::Factory | ( | const Params & | , | |
| bool | deprecationSupport | |||
| ) |
Factory function for plugin.
| void xmltooling::PluginManager< T, Key, Params >::registerFactory | ( | const Key & | type, | |
| typename PluginManager< T, Key, Params >::Factory * | factory | |||
| ) | [inline] |
Registers the factory for a given type.
| type | the key to the plugin type | |
| factory | the factory function for the plugin type |
| void xmltooling::PluginManager< T, Key, Params >::deregisterFactory | ( | const Key & | type | ) | [inline] |
Unregisters the factory for a given type.
| type | the key to the plugin type |
| T* xmltooling::PluginManager< T, Key, Params >::newPlugin | ( | const Key & | type, | |
| const Params & | p, | |||
| bool | deprecationSupport | |||
| ) | const [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 |
1.5.6