te::plugin::AbstractPluginEngine Class Referenceabstract

#include <AbstractPluginEngine.h>

Inheritance diagram for te::plugin::AbstractPluginEngine:
te::plugin::CppPluginEngine

Public Member Functions

 AbstractPluginEngine ()
 
virtual AbstractPluginload (const PluginInfo &pInfo)=0
 It try to create and load the informed plugin. More...
 
virtual void unload (AbstractPlugin *plugin)=0
 It try to unload the informed plugin. More...
 
virtual ~AbstractPluginEngine ()
 Virtual destructor. More...
 

Detailed Description

Definition at line 54 of file AbstractPluginEngine.h.

Constructor & Destructor Documentation

te::plugin::AbstractPluginEngine::AbstractPluginEngine ( )
inline

Default construtor.

Definition at line 59 of file AbstractPluginEngine.h.

virtual te::plugin::AbstractPluginEngine::~AbstractPluginEngine ( )
inlinevirtual

Virtual destructor.

Definition at line 62 of file AbstractPluginEngine.h.

Member Function Documentation

virtual AbstractPlugin* te::plugin::AbstractPluginEngine::load ( const PluginInfo pInfo)
pure virtual

It try to create and load the informed plugin.

Parameters
pInfoThe information needed to create and load the plugin.
Returns
It returns a loaded plugin. The caller will take the ownership of the returned plugin.
Exceptions
ExceptionIt throws an exception if the plugin can not be loaded.
Note
If the parameter PluginInfo::m_folder does not contains the required plugin it may be searched and loaded using a set of default paths.

Implemented in te::plugin::CppPluginEngine.

virtual void te::plugin::AbstractPluginEngine::unload ( AbstractPlugin plugin)
pure virtual

It try to unload the informed plugin.

On success the informed plugin will be also destroyed and its pointer will be invalidated.

Parameters
pluginThe plugin to be unloaded.
Exceptions
ExceptionIt throws an exception if the plugin can not be unloaded.

Implemented in te::plugin::CppPluginEngine.


The documentation for this class was generated from the following file: