EsafMsgSource
#include "EsafMsgSource.hh" |
EsafMsgSource
class description - source file - inheritance tree (.pdf)
class EsafMsgSource
protected:
EsafMsgSource() EsafMsgSource(const EsafMsgSource&) public:
virtual ~EsafMsgSource() static TClass* Class() void Dispatch() const void FatalError(const string& errmsg) const virtual TClass* IsA() const EsafMsg& Msg(EsafMsg::MsgSeverity) const void MsgForm(EsafMsg::MsgSeverity, const char* fmt) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
Data Members
private:
EsafMsg fMsg
Class Description
ESAF Message Source =================== Each class that wants to send messages must inherit from this one Two ways to send a message: Using a stream examples (equivalent): Msg(EsafMsg::Warning) << "my text" << MsgDispatch; or Msg(EsafMsg::Warning) << "my text"; Dispatch(); or using printf like syntax: example: MsgForm( EsafMsg::Severity, "msg with printf formatting", var1, var2...); The messages are dispatched on screen and log file according to the default values specified by the configuration files
EsafMsg& Msg(EsafMsg::MsgSeverity s) const
Prepare a new message and returns it
void MsgForm(EsafMsg::MsgSeverity s, const char *va_(fmt), ...) const
Prepare and send a message with printf syntax
Inline Functions
void ~EsafMsgSource() EsafMsgSource EsafMsgSource() EsafMsgSource EsafMsgSource(const EsafMsgSource&) void Dispatch() const void FatalError(const string& errmsg) const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)