1 #ifndef GAUDIKERNEL_MESSAGE_H 2 #define GAUDIKERNEL_MESSAGE_H 40 void setType(
int msg_type );
77 void invalidFormat()
const;
83 void decodeFormat(
const std::string& format )
const;
89 void setWidth(
const std::string& formatArg )
const;
110 mutable char m_fill =
' ';
113 mutable int m_width = 0;
116 mutable bool m_left =
true;
121 static const char FORMAT_PREFIX =
'%';
124 static const char JUSTIFY_LEFT =
'L';
127 static const char JUSTIFY_RIGHT =
'R';
130 static const char MESSAGE =
'M';
133 static const char TYPE =
'T';
136 static const char TIME =
't';
140 static const char UTIME =
'u';
143 static const char SOURCE =
'S';
148 static const char FILL =
'F';
153 static const char WIDTH =
'W';
160 static constexpr
const char* DEFAULT_FORMAT =
"% F%18W%S%7W%R%T %0W%M";
164 static constexpr
const char* DEFAULT_TIME_FORMAT =
"%Y-%m-%d %H:%M:%S,%f";
167 static const char SLOT =
's';
168 static const char EVTNUM =
'e';
169 static const char THREAD =
'X';
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
std::string m_formatted_msg
Formatted message.
std::string m_message
The message.
bool operator<(const EventIDBase &lhs, const EventIDBase &rhs)
GAUDI_API std::ostream & operator<<(std::ostream &stream, const Message &msg)
Insert the message into a stream.
GAUDI_API bool operator==(const Message &a, const Message &b)
Insert the message into a stream.