34 info(
"Loading dll "+library+
".",
"DLLMgr::load");
39 info(
"Library "+library+
" loaded.");
41 if ( 0!=
dll(library) ){
42 warning(
"DLL "+library+
" already loaded. Cannot load library.",
"DLLMgr::loadDLL");
47 std::vector<std::string> list = mydll->
objectList();
48 std::vector<DLL*>::const_iterator iter ;
49 std::vector<std::string>::const_iterator objs ;
50 for ( objs=list.begin() ;
53 for ( iter =
m_dlls.begin() ;
56 if ( (*iter)->containsObject( *objs ) ){
57 warning(
"The DLL "+library+
" contains an object ("+
58 (*objs) +
" which has already been loaded from "+
59 (*iter)->name()+
". Cannot load library.",
67 m_dlls.push_back ( mydll );
71 warning(
"The DLL "+library+
" could not be properly loaded.",
"DLLMgr::loadDLL");
80 std::vector<DLL*>::iterator dlltoremove;
81 std::vector<DLL*>::iterator iter ;
82 for ( iter =
m_dlls.begin() ;
85 if ( 0==lib.compare((*iter)->name()) ) {
99 std::vector<DLL*>::const_iterator iter ;
100 for ( iter =
m_dlls.begin() ;
103 if ( (*iter)->containsObject( obj ) ){
114 std::vector<DLL*>::const_iterator iter ;
115 for ( iter =
m_dlls.begin() ;
118 if ( 0==lib.compare( (*iter)->name() ) ){
176 std::vector<DLL*>::iterator iter ;
177 for ( iter =
m_dlls.begin() ;
179 ++iter ) {(*iter)->print();}
std::vector< std::string > objectList()
Element * createElement(std::string)
StatusCode unload(std::string)
void info(std::string msg)
void warning(std::string msg)
StatusCode destroy(Element *)
StatusCode load(std::string)
Element * createElement(std::string)
DLL * libraryOfObject(std::string)
std::vector< DLL * > m_dlls
Processus * createProcessus(std::string)
virtual ~DLLMgr()
Destructor.
StatusCode destroy(Element *)
DLLMgr()
Standard constructor.
StatusCode load(std::string)
Processus * createProcessus(std::string)