#include <PluginManager.hpp>
Definition at line 37 of file PluginManager.hpp.
◆ LibMap
◆ PluginManager()
ers::PluginManager::PluginManager |
( |
| ) |
|
Constructor loads the plugins.
Definition at line 57 of file PluginManager.cpp.
58 {
59 const char * env = ::getenv( EnvironmentName );
60 std::string config( env ? std::string( env ) + SEPARATOR + DefaultLibraryName : DefaultLibraryName );
61
62 std::vector<std::string> libs;
64
65
66 for ( size_t i = 0; i < libs.size(); i++ )
67 {
68 LibMap::iterator it =
libraries_.find( libs[i] );
70 {
71 try
72 {
73 libraries_[libs[i]] =
new SharedLibrary( libs[i] );
74 }
75 catch( PluginException & ex )
76 {
77 ERS_INTERNAL_ERROR(
"Library " << libs[i] <<
" can not be loaded because " << ex.reason() )
78 }
79 }
80 }
81 }
#define ERS_INTERNAL_ERROR(message)
void tokenize(const std::string &text, const std::string &separators, std::vector< std::string > &tokens)
◆ ~PluginManager()
ers::PluginManager::~PluginManager |
( |
| ) |
|
Destructor unloads the plugins.
Definition at line 47 of file PluginManager.cpp.
48 {
51 {
52 delete it->second;
54 }
55 }
◆ libraries_
LibMap ers::PluginManager::libraries_ |
|
private |
The documentation for this class was generated from the following files: