Cat
|
#include <inc/DLL.h>
Public Types | |
typedef void * | ImageHandle |
typedef void(* | EntryPoint) (DLL *) |
typedef Element *(* | ConstructorElement) () |
typedef void(* | DestructorElement) (Element *) |
typedef Processus *(* | ConstructorProcessus) () |
typedef void(* | DestructorProcessus) (Processus *) |
typedef Object *(* | ConstructorObject) () |
typedef void(* | DestructorObject) (Object *) |
typedef std::pair< std::string, std::string > | identification |
typedef std::vector< identification > | listOfElements |
typedef std::vector< identification > | listOfProcessus |
typedef std::vector< identification > | listOfObjects |
Public Member Functions | |
DLL () | |
Standard constructor. More... | |
virtual | ~DLL () |
Destructor. More... | |
StatusCode | load (std::string) |
StatusCode | unload () |
void | setName (std::string name) |
std::string | name () |
listOfElements | listElements () |
listOfProcessus | listProcessus () |
listOfObjects | listObjects () |
void | addElement (std::string element, std::string description=std::string("")) |
void | addProcessus (std::string proc, std::string description=std::string("")) |
void | addObject (std::string proc, std::string description=std::string("")) |
bool | containsObject (std::string) |
std::vector< std::string > | objectList () |
StatusCode | init () |
Element * | createElement (std::string) |
Processus * | createProcessus (std::string) |
Object * | createObject (std::string) |
StatusCode | destroy (Element *) |
StatusCode | destroy (Processus *) |
StatusCode | destroy (Object *) |
void | print () |
Private Member Functions | |
void | msg (std::string mymsg) |
void | verbose (std::string mymsg) |
void | debug (std::string mymsg) |
void | info (std::string mymsg) |
void | warning (std::string mymsg) |
void | fatal (std::string mymsg) |
void | msg (std::string mymsg, std::string name) |
void | verbose (std::string mymsg, std::string name) |
void | debug (std::string mymsg, std::string name) |
void | info (std::string mymsg, std::string name) |
void | warning (std::string mymsg, std::string name) |
void | fatal (std::string mymsg, std::string name) |
Private Attributes | |
MsgSvc | m_log |
std::string | m_name |
ImageHandle | m_handle |
listOfElements | m_listElements |
listOfProcessus | m_listProcessus |
listOfObjects | m_listObjects |
std::vector< ConstructorElement > | m_elementConstructors |
std::vector< DestructorElement > | m_elementDestructors |
std::vector< ConstructorProcessus > | m_processusConstructors |
std::vector< DestructorProcessus > | m_processusDestructors |
std::vector< ConstructorObject > | m_objectConstructors |
std::vector< DestructorObject > | m_objectDestructors |
typedef std::pair<std::string,std::string> DLL::identification |
typedef void* DLL::ImageHandle |
typedef std::vector<identification> DLL::listOfElements |
typedef std::vector<identification> DLL::listOfObjects |
typedef std::vector<identification> DLL::listOfProcessus |
DLL::DLL | ( | ) |
Standard constructor.
|
inline |
|
inline |
Definition at line 159 of file DLL.h.
References containsObject(), createElement(), createObject(), createProcessus(), destroy(), init(), m_listObjects, objectList(), and print().
|
inline |
bool DLL::containsObject | ( | std::string | name | ) |
find if Object belong to the library
Definition at line 32 of file DLL.cpp.
References m_listElements, and m_listProcessus.
Referenced by addObject().
Element * DLL::createElement | ( | std::string | name | ) |
Create an Element from its type
Definition at line 278 of file DLL.cpp.
References m_elementConstructors, m_listElements, name(), and Object::setDllName().
Referenced by addObject(), and DLLMgr::createElement().
Object* DLL::createObject | ( | std::string | ) |
Create a Object from its type
Referenced by addObject().
Processus * DLL::createProcessus | ( | std::string | name | ) |
Create a Processus from its type
Definition at line 297 of file DLL.cpp.
References m_listProcessus, m_processusConstructors, name(), and Object::setDllName().
Referenced by addObject(), DLLMgr::createProcessus(), and init().
|
inlineprivate |
Definition at line 234 of file DLL.h.
References MsgSvc::DEBUG, and MsgSvc::msgSvc().
Referenced by load().
|
inlineprivate |
Definition at line 241 of file DLL.h.
References MsgSvc::DEBUG, and MsgSvc::msgSvc().
StatusCode DLL::destroy | ( | Element * | ptr | ) |
Destroy an Element from its pointer
Definition at line 316 of file DLL.cpp.
References StatusCode::FAILURE, m_elementDestructors, m_listElements, StatusCode::SUCCESS, and Object::type().
Referenced by addObject(), and DLLMgr::destroy().
StatusCode DLL::destroy | ( | Processus * | ptr | ) |
Destroy a Processus from its pointer
Definition at line 334 of file DLL.cpp.
References StatusCode::FAILURE, m_listProcessus, m_processusDestructors, StatusCode::SUCCESS, and Object::type().
StatusCode DLL::destroy | ( | Object * | ) |
Destroy a Object from its pointer
|
inlineprivate |
Definition at line 237 of file DLL.h.
References MsgSvc::FATAL, and MsgSvc::msgSvc().
|
inlineprivate |
Definition at line 244 of file DLL.h.
References MsgSvc::FATAL, and MsgSvc::msgSvc().
|
inlineprivate |
Definition at line 235 of file DLL.h.
References MsgSvc::INFO, and MsgSvc::msgSvc().
Referenced by load(), and print().
|
inlineprivate |
Definition at line 242 of file DLL.h.
References MsgSvc::INFO, and MsgSvc::msgSvc().
StatusCode DLL::init | ( | ) |
initialization of the dll
Definition at line 172 of file DLL.cpp.
References ProcDataBase::add(), application(), createProcessus(), StatusCode::FAILURE, m_elementConstructors, m_elementDestructors, m_handle, m_listElements, m_listProcessus, m_processusConstructors, m_processusDestructors, Application::procDb(), StatusCode::SUCCESS, and warning().
Referenced by addObject(), and load().
|
inline |
Get accessor to member m_listElement
Definition at line 116 of file DLL.h.
References m_listElements.
|
inline |
Get accessor to member m_listObjects
Definition at line 132 of file DLL.h.
References m_listObjects.
|
inline |
Get accessor to member m_listProcessus
Definition at line 124 of file DLL.h.
References m_listProcessus.
StatusCode DLL::load | ( | std::string | library | ) |
Load the library according to its name
Definition at line 118 of file DLL.cpp.
References debug(), StatusCode::FAILURE, info(), init(), m_handle, name(), print(), setName(), StatusCode::SUCCESS, and warning().
Referenced by DLLMgr::load().
|
inlineprivate |
Definition at line 232 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::NONE.
|
inlineprivate |
Definition at line 239 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::NONE.
|
inline |
Get accessor to member m_name
Definition at line 108 of file DLL.h.
References m_name.
Referenced by createElement(), createProcessus(), load(), print(), and setName().
std::vector< std::string > DLL::objectList | ( | ) |
list of Objects
Definition at line 55 of file DLL.cpp.
References m_listElements, and m_listProcessus.
Referenced by addObject(), and DLLMgr::load().
void DLL::print | ( | ) |
print DLL information
Definition at line 74 of file DLL.cpp.
References application(), info(), itos(), m_listElements, m_listProcessus, name(), Application::procDb(), ProcDataBase::processus(), and Object::type().
Referenced by addObject(), export_base(), and load().
|
inline |
StatusCode DLL::unload | ( | ) |
Unload the library
Definition at line 263 of file DLL.cpp.
References StatusCode::FAILURE, m_handle, and StatusCode::SUCCESS.
|
inlineprivate |
Definition at line 233 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::VERBOSE.
|
inlineprivate |
Definition at line 240 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::VERBOSE.
|
inlineprivate |
Definition at line 236 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::WARNING.
Referenced by init(), and load().
|
inlineprivate |
Definition at line 243 of file DLL.h.
References MsgSvc::msgSvc(), and MsgSvc::WARNING.
|
private |
Definition at line 225 of file DLL.h.
Referenced by createElement(), and init().
|
private |
|
private |
|
private |
Definition at line 222 of file DLL.h.
Referenced by addElement(), containsObject(), createElement(), destroy(), init(), listElements(), objectList(), and print().
|
private |
Definition at line 224 of file DLL.h.
Referenced by addObject(), and listObjects().
|
private |
Definition at line 223 of file DLL.h.
Referenced by addProcessus(), containsObject(), createProcessus(), destroy(), init(), listProcessus(), objectList(), and print().
|
private |
|
private |
|
private |
|
private |
Definition at line 227 of file DLL.h.
Referenced by createProcessus(), and init().
|
private |