Cat
|
#include <inc/DLLMgr.h>
Public Member Functions | |
DLLMgr () | |
Standard constructor. More... | |
virtual | ~DLLMgr () |
Destructor. More... | |
StatusCode | load (std::string) |
StatusCode | unload (std::string) |
DLL * | dll (std::string) |
std::vector< DLL * > | dlls (std::string) |
DLL * | libraryOfObject (std::string) |
Element * | createElement (std::string) |
StatusCode | destroy (Element *) |
Processus * | createProcessus (std::string) |
StatusCode | destroy (Processus *) |
void | print () |
Private Member Functions | |
void | verbose (std::string msg) |
void | debug (std::string msg) |
void | info (std::string msg) |
void | warning (std::string msg) |
void | fatal (std::string msg) |
void | verbose (std::string msg, std::string name) |
void | debug (std::string msg, std::string name) |
void | info (std::string msg, std::string name) |
void | warning (std::string msg, std::string name) |
void | fatal (std::string msg, std::string name) |
Private Attributes | |
MsgSvc | m_log |
std::vector< DLL * > | m_dlls |
DLLMgr::DLLMgr | ( | ) |
|
virtual |
Element * DLLMgr::createElement | ( | std::string | name | ) |
Build an element from the manager
Definition at line 128 of file DLLMgr.cpp.
References DLL::createElement(), and libraryOfObject().
Referenced by Application::create(), dlls(), and export_base().
Processus * DLLMgr::createProcessus | ( | std::string | name | ) |
create a processus from the manager
Definition at line 139 of file DLLMgr.cpp.
References DLL::createProcessus(), and libraryOfObject().
Referenced by dlls(), and export_base().
|
inlineprivate |
Definition at line 85 of file DLLMgr.h.
References MsgSvc::DEBUG, and MsgSvc::msgSvc().
|
inlineprivate |
Definition at line 91 of file DLLMgr.h.
References MsgSvc::DEBUG, and MsgSvc::msgSvc().
StatusCode DLLMgr::destroy | ( | Element * | element | ) |
Delete an element from the manager
Definition at line 150 of file DLLMgr.cpp.
References DLL::destroy(), StatusCode::FAILURE, libraryOfObject(), StatusCode::SUCCESS, and Object::type().
Referenced by dlls(), and export_base().
StatusCode DLLMgr::destroy | ( | Processus * | proc | ) |
Delete a processus from the manager
Definition at line 162 of file DLLMgr.cpp.
References DLL::destroy(), StatusCode::FAILURE, libraryOfObject(), StatusCode::SUCCESS, and Object::type().
DLL * DLLMgr::dll | ( | std::string | lib | ) |
find dll objects from its name
Definition at line 113 of file DLLMgr.cpp.
References m_dlls.
Referenced by export_base(), and load().
|
inline |
find dll objects from its name
Definition at line 45 of file DLLMgr.h.
References createElement(), createProcessus(), destroy(), libraryOfObject(), m_dlls, and print().
Referenced by export_base().
|
inlineprivate |
Definition at line 88 of file DLLMgr.h.
References MsgSvc::FATAL, and MsgSvc::msgSvc().
|
inlineprivate |
Definition at line 94 of file DLLMgr.h.
References MsgSvc::FATAL, and MsgSvc::msgSvc().
|
inlineprivate |
Definition at line 86 of file DLLMgr.h.
References MsgSvc::INFO, and MsgSvc::msgSvc().
Referenced by load().
|
inlineprivate |
Definition at line 92 of file DLLMgr.h.
References MsgSvc::INFO, and MsgSvc::msgSvc().
DLL * DLLMgr::libraryOfObject | ( | std::string | obj | ) |
find DLL which contains objects type
Definition at line 98 of file DLLMgr.cpp.
References m_dlls.
Referenced by createElement(), createProcessus(), destroy(), dlls(), and export_base().
StatusCode DLLMgr::load | ( | std::string | library | ) |
load a DLL and stores its entry point
Definition at line 32 of file DLLMgr.cpp.
References dll(), StatusCode::FAILURE, info(), StatusCode::isSuccess(), DLL::load(), m_dlls, DLL::objectList(), StatusCode::SUCCESS, and warning().
Referenced by export_base().
void DLLMgr::print | ( | ) |
Definition at line 174 of file DLLMgr.cpp.
References m_dlls.
Referenced by dlls(), and export_base().
StatusCode DLLMgr::unload | ( | std::string | lib | ) |
unload a DLL and removes its entry point from the list
Definition at line 79 of file DLLMgr.cpp.
References m_dlls.
Referenced by export_base().
|
inlineprivate |
Definition at line 84 of file DLLMgr.h.
References MsgSvc::msgSvc(), and MsgSvc::VERBOSE.
|
inlineprivate |
Definition at line 90 of file DLLMgr.h.
References MsgSvc::msgSvc(), and MsgSvc::VERBOSE.
|
inlineprivate |
Definition at line 87 of file DLLMgr.h.
References MsgSvc::msgSvc(), and MsgSvc::WARNING.
Referenced by load().
|
inlineprivate |
Definition at line 93 of file DLLMgr.h.
References MsgSvc::msgSvc(), and MsgSvc::WARNING.
|
private |