The base class for plugin engines.
More...
#include <AbstractPluginEngine.h>
|
| | AbstractPluginEngine () |
| | Default construtor.
|
| |
| virtual const std::string & | id () const =0 |
| | Every plugin engine must have a unique identifier.
|
| |
| virtual std::unique_ptr< AbstractPlugin > | load (const PluginInfo &pinfo)=0 |
| | Load the informed plugin.
|
| |
| virtual const std::string & | name () const =0 |
| | The name of plugin engine with a brief title or description.
|
| |
| virtual void | unload (std::unique_ptr< AbstractPlugin > plugin)=0 |
| | Unload the informed plugin.
|
| |
| virtual | ~AbstractPluginEngine ()=default |
| | Virtual destructor.
|
| |
The base class for plugin engines.
Definition at line 54 of file AbstractPluginEngine.h.
◆ AbstractPluginEngine() [1/2]
| te::core::AbstractPluginEngine::AbstractPluginEngine |
( |
| ) |
|
|
inline |
◆ ~AbstractPluginEngine()
| virtual te::core::AbstractPluginEngine::~AbstractPluginEngine |
( |
| ) |
|
|
virtualdefault |
◆ AbstractPluginEngine() [2/2]
◆ id()
| virtual const std::string & te::core::AbstractPluginEngine::id |
( |
| ) |
const |
|
pure virtual |
◆ load()
Load the informed plugin.
- Parameters
-
| pinfo | Information about the plugin to be loaded. |
- Exceptions
-
Implemented in te::core::CppPluginEngine.
◆ name()
| virtual const std::string & te::core::AbstractPluginEngine::name |
( |
| ) |
const |
|
pure virtual |
◆ operator=()
◆ unload()
| virtual void te::core::AbstractPluginEngine::unload |
( |
std::unique_ptr< AbstractPlugin > |
plugin | ) |
|
|
pure virtual |
Unload the informed plugin.
On success the informed plugin will be also destroyed and its pointer will be invalidated.
- Exceptions
-
Implemented in te::core::CppPluginEngine.
The documentation for this class was generated from the following file: