EsafMsgDispatcher
| #include "EsafMsgDispatcher.hh" |
EsafMsgDispatcher
class description - source file - inheritance tree (.pdf)
class EsafMsgDispatcher : public EsafConfigurable
| Inheritance Chart: | |||||||||
|
private:
EsafMsgDispatcher()
public:
virtual ~EsafMsgDispatcher()
static TClass* Class()
virtual const char* ClassName() const
virtual const char* ClassType() const
void Dispatch(const EsafMsg&, Bool_t endline = kTRUE)
static EsafMsgDispatcher* Get()
EsafMsg::MsgSeverity GetLogSeverity()
EsafMsg::MsgSeverity GetScreenSeverity()
virtual TClass* IsA() const
void LoadConfig()
void OpenLog(const char* = "0")
void OpenLog(string name)
void SetLogSeverity(EsafMsg::MsgSeverity s)
void SetScreenSeverity(EsafMsg::MsgSeverity s)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Data Members
private:
static EsafMsgDispatcher* fMe
Int_t fHeaderLenght
Bool_t fIsScreenFlushed
Bool_t fIsLogFlushed
Bool_t fUseColors
static const char *const kEsc
static const char *const kReset
static const char *const kRed
static const char *const kGreen
static const char *const kYellow
static const char *const kBlue
static const char *const kUnderline
static const char *const kBlink
static const char *const kBright
static const char *const kDark
static const char* fgColors
EsafMsg::MsgSeverity fDefaultLogSeverity default severity level for log file
EsafMsg::MsgSeverity fDefaultScreenSeverity default severity level for screen
string fLogFileName log file name
map<string,EsafMsg::MsgSeverity> fUserMap map of user defined target dependent severities
ofstream fLogFile
Class Description
ESAF Message Dispatcher ======================= ESAF Message Dispatcher This is a single to really dispatch the messages according to the configuration. The user can specify the default message level for screen and log file Besides, the user can also change the message level for specific classes that inherit from EsafMsgSource class See EsafMsgSource.cc for further details
void LoadConfig()
void OpenLog( const char* name )
Open a new log file
EsafMsgDispatcher* Get()
void Dispatch(const EsafMsg& msg, Bool_t endline)
Inline Functions
void ~EsafMsgDispatcher()
void OpenLog(string name)
void SetScreenSeverity(EsafMsg::MsgSeverity s)
void SetLogSeverity(EsafMsg::MsgSeverity s)
EsafMsg::MsgSeverity GetScreenSeverity()
EsafMsg::MsgSeverity GetLogSeverity()
const char* ClassType() const
const char* ClassName() const
EsafMsgDispatcher EsafMsgDispatcher()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
