an interface for defining dynamically loadable plugins that define extensions and extension points.
More...
#include <Plugin.hpp>
Inherited by CSGEJSEnginePlugin, AnalyticGeometryPlugin, SimpleFingerPlugin, MathGLPlugin, ProximityStrategyPlugin, LuaPlugin, ChartViewPlugin, RWSImageLoaderPlugin, ODEPlugin, LuaPlugin, BtPlugin, and LuaPlugin.
|
| Plugin (const std::string &id, const std::string &name, const std::string &version) |
| constructor More...
|
|
|
static void | close (const OSHandle *handle) |
| Close the plugin. More...
|
|
an interface for defining dynamically loadable plugins that define extensions and extension points.
◆ Plugin()
Plugin |
( |
const std::string & |
id, |
|
|
const std::string & |
name, |
|
|
const std::string & |
version |
|
) |
| |
|
protected |
constructor
- Parameters
-
id | [in] unique identifier of this plugin |
name | [in] Human readable identifier of this plugin |
version | [in] version of this plugin |
◆ close()
static void close |
( |
const OSHandle * |
handle | ) |
|
|
staticprotected |
Close the plugin.
- Parameters
-
handle | [in] the low-level handle of the plugin. |
◆ getExtensionPointIDs()
virtual std::vector<std::string> getExtensionPointIDs |
( |
| ) |
|
|
virtual |
get a list of extension point ids which this plugin define
- Returns
- list of extension points ids.
◆ getHandle()
const OSHandle* getHandle |
( |
| ) |
|
Get the low-level handle of the plugin (for internal use).
- Returns
- the handle.
◆ getId()
const std::string& getId |
( |
| ) |
|
|
inline |
Get unique identifier of plugin.
- Returns
- the identifier.
◆ getName()
const std::string& getName |
( |
| ) |
|
|
inline |
Get human readable identifier for the plugin.
- Returns
- the identifier.
◆ getVersion()
const std::string& getVersion |
( |
| ) |
|
|
inline |
Get version of plugin.
- Returns
- the version.
◆ load()
Load the plugin given by filename.
A filename with .xml extension will be loaded as a lazy plugin.
Notice that the smart pointer returned will automatically unload the plugin when there are no more references to the plugin.
- Parameters
-
filename | [in] the filename. |
- Returns
- the plugin, or NULL if load failed.
The documentation for this class was generated from the following file: