#include <pluginmanager.h>
Public Types | |
| typedef dtDIS::details::CreateDestroyPolicy < IDISPlugin > | LibLoaderT |
| convenience typedef. | |
| typedef LibLoaderT::LibraryInterface | RegistryEntry |
| the stored type, also passed to observers upon notification. | |
| typedef sigslot::signal2 < const std::string &, RegistryEntry & > | PluginSignal |
| specifies the required function signature for slots observing plugin events. | |
| typedef std::map< std::string, RegistryEntry > | LibraryRegistry |
| a mapping from the library path loaded to an object with defined entry points. | |
Public Member Functions | |
| bool | LoadPlugin (const std::string &path) |
| searches for the file, notifies observers of the new plugin. | |
| bool | UnloadPlugin (const std::string &path) |
| notifies observers that the memory will be released if the path is a loaded library, releases the memory for library. | |
| PluginSignal & | GetLoadedSignal () |
| get the signal instance in order to connect or disconnet to the loaded event. | |
| PluginSignal & | GetUnloadedSignal () |
| get the signal instance in order to connect or disconnet to the unloaded event. | |
| const LibraryRegistry & | GetRegistry () const |
| get the plugin container | |
| LibraryRegistry & | GetRegistry () |
| get the plugin container | |
| void | UnloadAllPlugins () |
| will call this->UnloadPlugin for all of the known plugins. | |
notifies observers when plugins are added or removed to the container.
| typedef dtDIS::details::CreateDestroyPolicy<IDISPlugin> dtDIS::PluginManager::LibLoaderT |
convenience typedef.
| typedef LibLoaderT::LibraryInterface dtDIS::PluginManager::RegistryEntry |
the stored type, also passed to observers upon notification.
| typedef sigslot::signal2<const std::string&, RegistryEntry&> dtDIS::PluginManager::PluginSignal |
specifies the required function signature for slots observing plugin events.
| typedef std::map<std::string,RegistryEntry> dtDIS::PluginManager::LibraryRegistry |
a mapping from the library path loaded to an object with defined entry points.
| bool PluginManager::LoadPlugin | ( | const std::string & | path | ) |
searches for the file, notifies observers of the new plugin.
| path | the file path for the library to be loaded. |
| bool PluginManager::UnloadPlugin | ( | const std::string & | path | ) |
notifies observers that the memory will be released if the path is a loaded library, releases the memory for library.
| path | the file path for the library to be loaded. |
| PluginManager::PluginSignal & PluginManager::GetLoadedSignal | ( | ) |
get the signal instance in order to connect or disconnet to the loaded event.
| PluginManager::PluginSignal & PluginManager::GetUnloadedSignal | ( | ) |
get the signal instance in order to connect or disconnet to the unloaded event.
| const PluginManager::LibraryRegistry & PluginManager::GetRegistry | ( | ) | const |
get the plugin container
| PluginManager::LibraryRegistry & PluginManager::GetRegistry | ( | ) |
get the plugin container
| void PluginManager::UnloadAllPlugins | ( | ) |
will call this->UnloadPlugin for all of the known plugins.