Cat
DLLMgr.h
Go to the documentation of this file.
1 // $Id: $
2 #ifndef INC_DLLMGR_H
3 #define INC_DLLMGR_H 1
4 
5 // Include files
6 #include "StatusCode.h"
7 
8 class DLL;
9 class Element;
10 class Processus;
11 
19 class DLLMgr {
20 public:
21 
23  DLLMgr( );
24 
25  virtual ~DLLMgr( );
26 
30  StatusCode load ( std::string );
31 
35  StatusCode unload ( std::string ) ;
36 
40  DLL* dll ( std::string );
41 
45  std::vector<DLL*> dlls ( std::string )
46  {
47  return m_dlls;
48  }
49 
50 
54  DLL* libraryOfObject ( std::string );
55 
59  Element* createElement( std::string );
60 
65 
69  Processus* createProcessus ( std::string );
70 
75 
76  void print();
77 
78 protected:
79 
80 private:
81 
83 
84  void verbose ( std::string msg ) { m_log.msgSvc (MsgSvc::VERBOSE , msg, std::string("DLL") ); }
85  void debug ( std::string msg ) { m_log.msgSvc (MsgSvc::DEBUG , msg, std::string("DLL") ); }
86  void info ( std::string msg ) { m_log.msgSvc (MsgSvc::INFO , msg, std::string("DLL") ); }
87  void warning ( std::string msg ) { m_log.msgSvc (MsgSvc::WARNING , msg, std::string("DLL") ); }
88  void fatal ( std::string msg ) { m_log.msgSvc (MsgSvc::FATAL , msg, std::string("DLL") ); }
89 
90  void verbose ( std::string msg , std::string name ) { m_log.msgSvc (MsgSvc::VERBOSE , msg, name ); }
91  void debug ( std::string msg , std::string name ) { m_log.msgSvc (MsgSvc::DEBUG , msg, name ); }
92  void info ( std::string msg , std::string name ) { m_log.msgSvc (MsgSvc::INFO , msg, name ); }
93  void warning ( std::string msg , std::string name ) { m_log.msgSvc (MsgSvc::WARNING , msg, name ); }
94  void fatal ( std::string msg , std::string name ) { m_log.msgSvc (MsgSvc::FATAL , msg, name ); }
95 
96  std::vector<DLL*> m_dlls;
97 };
98 #endif // INC_DLLMGR_H
Element * createElement(std::string)
Definition: DLLMgr.cpp:128
StatusCode unload(std::string)
Definition: DLLMgr.cpp:79
void info(std::string msg)
Definition: DLLMgr.h:86
void fatal(std::string msg, std::string name)
Definition: DLLMgr.h:94
void warning(std::string msg)
Definition: DLLMgr.h:87
void warning(std::string msg, std::string name)
Definition: DLLMgr.h:93
void fatal(std::string msg)
Definition: DLLMgr.h:88
Definition: DLLMgr.h:19
StatusCode destroy(Element *)
Definition: DLLMgr.cpp:150
void debug(std::string msg, std::string name)
Definition: DLLMgr.h:91
StatusCode load(std::string)
Definition: DLLMgr.cpp:32
MsgSvc m_log
Definition: DLLMgr.h:82
DLL * libraryOfObject(std::string)
Definition: DLLMgr.cpp:98
std::vector< DLL * > m_dlls
Definition: DLLMgr.h:96
void verbose(std::string msg, std::string name)
Definition: DLLMgr.h:90
void info(std::string msg, std::string name)
Definition: DLLMgr.h:92
virtual ~DLLMgr()
Destructor.
Definition: DLLMgr.cpp:26
Definition: DLL.h:57
DLLMgr()
Standard constructor.
Definition: DLLMgr.cpp:20
void debug(std::string msg)
Definition: DLLMgr.h:85
DLL * dll(std::string)
Definition: DLLMgr.cpp:113
std::vector< DLL * > dlls(std::string)
Definition: DLLMgr.h:45
void print()
Definition: DLLMgr.cpp:174
void verbose(std::string msg)
Definition: DLLMgr.h:84
Definition: MsgSvc.h:21
void msgSvc(MsgSvc::MsgLevel, std::string, std::string call=std::string(""))
Definition: MsgSvc.cpp:42
Processus * createProcessus(std::string)
Definition: DLLMgr.cpp:139