A singleton that can be used to register plugin engines. More...
#include <PluginEngineManager.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| void | clear () |
| Unregister every plugin engine. More... | |
| AbstractPluginEngine & | get (const std::string &engine_id) const |
| Find a plugin engine with the given id. More... | |
| void | insert (std::unique_ptr< AbstractPluginEngine > engine) |
| Register a new plugin engine. More... | |
| void | remove (const std::string &engine_id) |
| Unregister the plugin engine. More... | |
Static Public Member Functions | |
| static PluginEngineManager & | instance () |
| Access the singleton. More... | |
Protected Member Functions | |
| PluginEngineManager () | |
| Consructor. More... | |
| ~PluginEngineManager () | |
| Destructor. More... | |
Private Member Functions | |
| PluginEngineManager & | operator= (const PluginEngineManager &) |
| PluginEngineManager (const PluginEngineManager &) | |
Private Attributes | |
| Impl * | m_pimpl |
A singleton that can be used to register plugin engines.
Definition at line 53 of file PluginEngineManager.h.
|
protected |
|
protected |
|
private |
| void te::core::PluginEngineManager::clear | ( | ) |
Unregister every plugin engine.
Definition at line 96 of file PluginEngineManager.cpp.
References te::core::PluginEngineManager::Impl::engines, and m_pimpl.
Referenced by te::core::plugin::FinalizePluginSystem().
| te::core::AbstractPluginEngine & te::core::PluginEngineManager::get | ( | const std::string & | engine_id | ) | const |
Find a plugin engine with the given id.
| OutOfRangeException | If an engine with the given id is not found. |
Definition at line 81 of file PluginEngineManager.cpp.
References te::core::PluginEngineManager::Impl::engines, m_pimpl, and TE_TR.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::core::PluginManager::load(), and WithoutPluginManager().
| void te::core::PluginEngineManager::insert | ( | std::unique_ptr< AbstractPluginEngine > | engine | ) |
Register a new plugin engine.
| InvalidArgumentException | It throws an exception if the engine argument is not valid or another engine with the same name is already registered. |
Definition at line 46 of file PluginEngineManager.cpp.
References te::core::PluginEngineManager::Impl::engines, m_pimpl, and TE_TR.
Referenced by BOOST_AUTO_TEST_CASE(), te::core::plugin::InitializePluginSystem(), and InitPluginSystem().
|
static |
Access the singleton.
Definition at line 102 of file PluginEngineManager.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::core::plugin::FinalizePluginSystem(), te::core::plugin::InitializePluginSystem(), InitPluginSystem(), te::core::PluginManager::load(), and WithoutPluginManager().
|
private |
| void te::core::PluginEngineManager::remove | ( | const std::string & | engine_id | ) |
Unregister the plugin engine.
| OutOfRangeException | If an engine with the given id is not found. |
Definition at line 66 of file PluginEngineManager.cpp.
References te::core::PluginEngineManager::Impl::engines, m_pimpl, and TE_TR.
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 103 of file PluginEngineManager.h.
Referenced by clear(), get(), insert(), PluginEngineManager(), remove(), and ~PluginEngineManager().