te::core::CppPluginEngine Class Reference

#include <CppPluginEngine.h>

Inheritance diagram for te::core::CppPluginEngine:
te::core::AbstractPluginEngine

Classes

struct  Impl
 

Public Member Functions

 CppPluginEngine ()
 Default construtor. More...
 
const std::string & id () const
 It returns the id of the plugin engine. More...
 
std::unique_ptr< AbstractPluginload (const PluginInfo &pinfo)
 It loads a cpp plugin from a give PluginInfo. More...
 
const std::string & name () const
 It returns the name of the plugin engine. More...
 
void unload (std::unique_ptr< AbstractPlugin > plugin)
 It unloads a cpp plugin from a give AbstractPlugin unique_ptr. More...
 
 ~CppPluginEngine ()
 Destructor. More...
 

Private Attributes

Implm_pimpl
 

Detailed Description

Definition at line 46 of file src/terralib/core/plugin/CppPluginEngine.h.

Constructor & Destructor Documentation

te::core::CppPluginEngine::CppPluginEngine ( )
te::core::CppPluginEngine::~CppPluginEngine ( )

Destructor.

Definition at line 62 of file src/terralib/core/plugin/CppPluginEngine.cpp.

References m_pimpl.

Member Function Documentation

const std::string & te::core::CppPluginEngine::id ( ) const
virtual

It returns the id of the plugin engine.

Implements te::core::AbstractPluginEngine.

Definition at line 68 of file src/terralib/core/plugin/CppPluginEngine.cpp.

References te::core::CppPluginEngine::Impl::engine_id, and m_pimpl.

std::unique_ptr< te::core::AbstractPlugin > te::core::CppPluginEngine::load ( const PluginInfo pinfo)
virtual

It loads a cpp plugin from a give PluginInfo.

Exceptions
PluginEngineLoadExceptionIf the plugin cannot be loaded.
Returns
A unique_ptr of the loaded plugin.

Implements te::core::AbstractPluginEngine.

Definition at line 80 of file src/terralib/core/plugin/CppPluginEngine.cpp.

References te::core::FileSystem::absolutePath(), te::core::FileSystem::currentPath(), te::core::Library::getNativeName(), te::core::PluginInfo::name, te::core::PluginInfo::resources, TE_LOG_TRACE, and TE_TR.

const std::string & te::core::CppPluginEngine::name ( ) const
virtual

It returns the name of the plugin engine.

Implements te::core::AbstractPluginEngine.

Definition at line 74 of file src/terralib/core/plugin/CppPluginEngine.cpp.

References te::core::CppPluginEngine::Impl::engine_name, and m_pimpl.

void te::core::CppPluginEngine::unload ( std::unique_ptr< AbstractPlugin plugin)
virtual

It unloads a cpp plugin from a give AbstractPlugin unique_ptr.

Exceptions
PluginEngineUnloadExceptionIf the plugin cannot be unloaded.

Implements te::core::AbstractPluginEngine.

Definition at line 212 of file src/terralib/core/plugin/CppPluginEngine.cpp.

References TE_TR.

Member Data Documentation

Impl* te::core::CppPluginEngine::m_pimpl
private

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