Class Info |
|---|
class PluginManager : public Singleton<PluginManager> Plugin manager that manages plugins, including registering and deregistering plugins, and managing information and plugin storage. PluginManager is used in singleton mode. |
Qualifier and Type | Method Name and Description |
|---|---|
void | Initializes the plugin manager and all plugins in the manager. |
void | Unloads the plugin manager and all plugins. |
const std::vector<String>& | Obtains all plugin types supported by the plugin manager. |
IPlugin* | LoadPlugin(const String& pluginName) Loads a plugin and returns the plugin pointer. |
void | UnloadPlugin(const String &pluginName) Unloads a plugin. |
const String& | Obtains the plugin directory. |
void | SetConfigFile(const String& configFile) Sets the directory of a plugin. |
Method |
|---|
void Initialize() Initializes the plugin manager and all plugins in the manager. |
Method |
|---|
const std::vector<String>& GetPluginList() Obtains all plugin types supported by the plugin manager. |
Returns
Type | Description |
|---|---|
const std::vector<String>& | A string for all supported plugin types. |
Method |
|---|
IPlugin* LoadPlugin(const String& pluginName) Loads a plugin and returns the plugin pointer. |
Parameters
Name | Description |
|---|---|
pluginName | Name of the plugin to be loaded. |
Returns
Type | Description |
|---|---|
IPlugin* | Actual plugin to which the plugin base class pointer points. |
Method |
|---|
void UnloadPlugin(const String& pluginName) Unloads a plugin. |
Parameters
Name | Description |
|---|---|
pluginName | Name of the plugin to be unloaded. |