Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iPluginManager Struct Reference

This is the plugin manager. More...

#include <plugin.h>

Inheritance diagram for iPluginManager:

iBase csPluginManager List of all members.

Public Methods

virtual iBaseLoadPlugin (const char *classID, const char *iInterface=NULL, int iVersion=0)=0
 Load a plugin and initialize it.

virtual iBaseQueryPlugin (const char *iInterface, int iVersion)=0
 Get first of the loaded plugins that supports given interface ID. More...

virtual iBaseQueryPlugin (const char *classID, const char *iInterface, int iVersion)=0
 Find a plugin given his class ID.

virtual bool UnloadPlugin (iComponent *obj)=0
 Remove a plugin from system driver's plugin list.

virtual bool RegisterPlugin (const char *classID, iComponent *obj)=0
 Register a object that implements the iComponent interface as a plugin.

virtual int GetPluginCount ()=0
 Get the number of loaded plugins in the plugin manager.

virtual iBaseGetPlugin (int idx)=0
 Get the specified plugin from the plugin manager.

virtual void Clear ()=0
 Unload all plugins from this plugin manager.

Detailed Description

This is the plugin manager.

Member Function Documentation

iBase * iPluginManager::QueryPlugin ( const char * iInterface,
int iVersion ) [pure virtual]

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.

Reimplemented in csPluginManager.

The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000