1 #ifndef GAUDIKERNEL_MESSAGE_H
2 #define GAUDIKERNEL_MESSAGE_H
38 void setType(
int msg_type );
75 void invalidFormat()
const;
81 void decodeFormat(
const std::string& format )
const;
87 void setWidth(
const std::string& formatArg )
const;
108 mutable char m_fill =
' ';
111 mutable int m_width = 0;
114 mutable bool m_left =
true;
119 static const char FORMAT_PREFIX =
'%';
122 static const char JUSTIFY_LEFT =
'L';
125 static const char JUSTIFY_RIGHT =
'R';
128 static const char MESSAGE =
'M';
131 static const char TYPE =
'T';
134 static const char TIME =
't';
138 static const char UTIME =
'u';
141 static const char SOURCE =
'S';
146 static const char FILL =
'F';
151 static const char WIDTH =
'W';
155 static constexpr
const char* DEFAULT_FORMAT =
"% F%18W%S%7W%R%T %0W%M";
159 static constexpr
const char* DEFAULT_TIME_FORMAT =
"%Y-%m-%d %H:%M:%S,%f";
162 static const char SLOT =
's';
163 static const char EVTNUM =
'e';
164 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.