2 #ifndef GAUDIKERNEL_MESSAGE_H
3 #define GAUDIKERNEL_MESSAGE_H
24 Message (
const std::string& src,
int type,
const std::string&
msg );
30 const std::string& getMessage()
const;
33 void setMessage(
const std::string&
msg );
39 void setType(
int msg_type );
42 const std::string& getSource()
const;
45 void setSource(
const std::string& src );
48 const std::string& getFormat()
const;
51 static const std::string getDefaultFormat();
54 void setFormat(
const std::string&
msg )
const;
57 const std::string& getTimeFormat()
const;
60 static const std::string getDefaultTimeFormat() ;
63 void setTimeFormat(
const std::string& timeFormat )
const;
76 void invalidFormat()
const;
79 void makeFormattedMsg(
const std::string&
format )
const;
82 void decodeFormat(
const std::string&
format )
const;
85 void sizeField(
const std::string& text )
const;
88 void setWidth(
const std::string& formatArg )
const;
91 std::string m_message;
97 mutable std::string m_format;
100 mutable std::string m_time_format;
106 mutable std::string m_formatted_msg;
118 static const char FORMAT_PREFIX;
121 static const char JUSTIFY_LEFT;
124 static const char JUSTIFY_RIGHT;
127 static const char MESSAGE;
130 static const char TYPE;
133 static const char TIME;
137 static const char UTIME;
140 static const char SOURCE;
145 static const char FILL;
150 static const char WIDTH;
153 static const char* DEFAULT_FORMAT;
156 static const char* DEFAULT_TIME_FORMAT;
GAUDI_API std::ostream & operator<<(std::ostream &stream, const Message &msg)
Insert the message into a stream.
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
GAUDI_API bool operator==(const Message &a, const Message &b)
Insert the message into a stream.
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".