![]() |
Public API Reference |
#include <plugin.h>
Inheritance diagram for iPluginManager:
Public Methods | |
virtual iBase * | LoadPlugin (const char *classID, const char *iInterface=NULL, int iVersion=0, bool init=true)=0 |
Load a plugin and (optionally) initialize it. More... | |
virtual iBase * | QueryPlugin (const char *iInterface, int iVersion)=0 |
Get first of the loaded plugins that supports given interface ID. More... | |
virtual iBase * | QueryPlugin (const char *classID, const char *iInterface, int iVersion)=0 |
Find a plugin given his class ID. More... | |
virtual bool | UnloadPlugin (iComponent *obj)=0 |
Remove a plugin from system driver's plugin list. More... | |
virtual bool | RegisterPlugin (const char *classID, iComponent *obj)=0 |
Register a object that implements the iComponent interface as a plugin. More... | |
virtual csPtr< iPluginIterator > | GetPlugins ()=0 |
Get an iterator to iterate over all loaded plugins in the plugin manager. More... | |
virtual void | Clear ()=0 |
Unload all plugins from this plugin manager. More... |
The plugin manager is guaranteed thread-safe.
Definition at line 81 of file plugin.h.
|
Unload all plugins from this plugin manager.
Implemented in csPluginManager. |
|
Get an iterator to iterate over all loaded plugins in the plugin manager. This iterator will contain a copy of the plugins so it will not lock the plugin manager while looping over the plugins. Implemented in csPluginManager. |
|
Load a plugin and (optionally) initialize it.
Implemented in csPluginManager. |
|
Find a plugin given his class ID.
Implemented in csPluginManager. |
|
Get first of the loaded plugins that supports given interface ID. Warning! Usage of this function is usually not safe since multiple plugins can implement the same interface and there is no way to know which one is the correct one. It is better to use the object registry to find about single loaded components. Implemented in csPluginManager. |
|
Register a object that implements the iComponent interface as a plugin.
Implemented in csPluginManager. |
|
Remove a plugin from system driver's plugin list.
Implemented in csPluginManager. |