template<class Interface>
AbstractManagingPlugin class
Base class for plugin interfaces with access to associated manager.
Contents
Useful for plugins which needs to access the manager (e.g. for loading and using other plugins).
Base classes
- class AbstractPlugin
- Base class for plugin interfaces.
Constructors, destructors, conversion operators
- AbstractManagingPlugin() defaulted explicit
- Default constructor.
- AbstractManagingPlugin(Manager<Interface>& manager) explicit
- Default constructor with access to plugin manager.
-
AbstractManagingPlugin(AbstractManager& manager,
const std::
string& plugin) explicit - Plugin manager constructor.
Protected functions
Function documentation
template<class Interface>
Corrade:: PluginManager:: AbstractManagingPlugin<Interface>:: AbstractManagingPlugin() explicit defaulted
Default constructor.
Define this constructor in your subclass only if you want to allow using the interface or plugin without any access to plugin manager.
The manager() and metadata() functions will return nullptr
.
template<class Interface>
Corrade:: PluginManager:: AbstractManagingPlugin<Interface>:: AbstractManagingPlugin(Manager<Interface>& manager) explicit
Default constructor with access to plugin manager.
Define this constructor in your subclass only if you want to allow using the plugin directly and the plugin needs access to its plugin manager.
The metadata() function will return nullptr
.
template<class Interface>
Corrade:: PluginManager:: AbstractManagingPlugin<Interface>:: AbstractManagingPlugin(AbstractManager& manager,
const std:: string& plugin) explicit
Plugin manager constructor.
Used by plugin manager. Don't forget to redefine this constructor in all your subclasses.