#include <pplugin.h>
Inheritance diagram for P::PluginFactoryImpl:

Public Member Functions | |
| PluginFactoryImpl (const char *iface) | |
| virtual | ~PluginFactoryImpl () |
| void | addPlugin (const char *path) throw (SystemError) |
| Load a plugin library. | |
| void | addPluginDir (const char *path) throw (SystemError, IOError) |
| Try loading plugin libraries found in directory. | |
| PluginBase * | create (const char *feature) |
| Create instance of plugin object. | |
| void | destroy (PluginBase *inst) |
| Destroy instance of plugin object. | |
| bool | provides (const char *feature) const |
| Checks if the factory provides a plugin with given feature. | |
The Plugin factory is used to load shared libraries which export plugin objects for a given interface (class). The factory will only load shared libraries which export features for the interface given in the constructor, others will be silently ignored. Using the feature as an identifier you can create instances of dynamically loaded objects. Please use the PluginFactory template class which avoids typecasts.
Definition at line 83 of file pplugin.h.
|
|
|
|
|
|
|
|
Load a plugin library.
|
|
|
Try loading plugin libraries found in directory.
|
|
|
Create instance of plugin object.
Reimplemented in P::PluginFactory< Iface >. |
|
|
Destroy instance of plugin object.
|
|
|
Checks if the factory provides a plugin with given feature.
|
1.3.3