#include <GaudiKernel/Message.h>
Public Methods | |
| Message () | |
| Default constructor. More... | |
| Message ( const char* src, int type, const char* msg ) | |
| Constructor. More... | |
| Message ( const std::string& src, int type, const std::string& msg ) | |
| Constructor. More... | |
| ~Message () | |
| Default destructor. More... | |
| const std::string& | getMessage () const |
| Get the message string. More... | |
| void | setMessage ( const std::string& msg ) |
| Set the message string. More... | |
| int | getType () const |
| Get the message type. More... | |
| void | setType ( int msg_type ) |
| Set the message type. More... | |
| const std::string& | getSource () const |
| Get the message source. More... | |
| void | setSource ( const std::string& src ) |
| Set the message source. More... | |
| const std::string& | getFormat () const |
| Get the format string. More... | |
| void | setFormat ( const std::string& msg ) const |
| Set the format string. More... | |
| bool | operator< ( const Message& test ) |
| Needed to build maps. More... | |
Protected Methods | |
| void | invalidFormat () const |
| Called when an invalid format string is encountered. More... | |
| void | makeFormattedMsg ( const std::string& format ) const |
| Format the message. More... | |
| void | decodeFormat ( const std::string& format ) const |
| Decode format. More... | |
| void | sizeField ( const std::string& text ) const |
| Truncate or pad the output string to the field width as necessary. More... | |
| void | setWidth ( const std::string& formatArg ) const |
| Set the width of a stream. More... | |
Protected Attributes | |
| std::string | m_message |
| The message. More... | |
| std::string | m_source |
| The source. More... | |
| std::string | m_format |
| The format string. More... | |
| int | m_type |
| The type. More... | |
| std::string | m_formatted_msg |
| Formatted message. More... | |
| char | m_fill |
| The current fill character. More... | |
| int | m_width |
| The current field width. More... | |
| bool | m_left |
| Justification. More... | |
Static Protected Attributes | |
| const char | FORMAT_PREFIX |
| The character used to prefix formatting commands. More... | |
| const char | JUSTIFY_LEFT |
| The character used to indicate start of left text justification. More... | |
| const char | JUSTIFY_RIGHT |
| The character used to indicate start of right text justification. More... | |
| const char | MESSAGE |
| The character used to indicate that the message should be printed. More... | |
| const char | TYPE |
| The character used to indicate that the message type should be printed. More... | |
| const char | SOURCE |
| The character used to indicate that the message source should be printed. More... | |
| const char | FILL |
| The character used to indicate that the previous character is to be used for padding out fields if the text is not long enough. More... | |
| const char | WIDTH |
| The character used to indicate that the previous decimal characters should be taken as the field width. More... | |
| const char* | DEFAULT_FORMAT = "% F%18W%S%7W%R%T %0W%M" |
| The default message format. More... | |
Friends | |
| std::ostream& | operator<< ( std::ostream& stream, const Message& msg ) |
| Insert the message into a stream. More... | |
| bool | operator== ( const Message& a, const Message& b ) |
| Insert the message into a stream. More... | |
This class is used to contain messages which can then be formatted and sent to a message service
Definition at line 15 of file Message.h.
|
|
Default constructor.
Definition at line 30 of file Message.cpp. |
|
|
Constructor.
Definition at line 42 of file Message.cpp. |
|
|
Constructor.
Definition at line 54 of file Message.cpp. |
|
|
Default destructor.
|
|
|
Decode format.
Definition at line 237 of file Message.cpp. Referenced by makeFormattedMsg(). |
|
|
Get the format string.
Definition at line 171 of file Message.cpp. |
|
|
Get the message string.
Definition at line 66 of file Message.cpp. |
|
|
Get the message source.
Definition at line 110 of file Message.cpp. |
|
|
Get the message type.
Definition at line 88 of file Message.cpp. |
|
|
Called when an invalid format string is encountered.
Definition at line 299 of file Message.cpp. Referenced by decodeFormat(), makeFormattedMsg(), and setWidth(). |
|
|
Format the message.
Definition at line 197 of file Message.cpp. Referenced by invalidFormat(), and operator<<(). |
|
|
Needed to build maps.
Definition at line 145 of file Message.cpp. |
|
|
Set the format string.
Definition at line 183 of file Message.cpp. |
|
|
Set the message string.
Definition at line 77 of file Message.cpp. |
|
|
Set the message source.
Definition at line 121 of file Message.cpp. |
|
|
Set the message type.
Definition at line 99 of file Message.cpp. |
|
|
Set the width of a stream.
Definition at line 311 of file Message.cpp. Referenced by decodeFormat(). |
|
|
Truncate or pad the output string to the field width as necessary.
Definition at line 342 of file Message.cpp. Referenced by decodeFormat(). |
|
|
Insert the message into a stream.
Definition at line 132 of file Message.cpp. |
|
|
Insert the message into a stream.
Definition at line 158 of file Message.cpp. |
|
|
The default message format.
Definition at line 22 of file Message.cpp. |
|
|
The character used to indicate that the previous character is to be used for padding out fields if the text is not long enough.
Definition at line 19 of file Message.cpp. |
|
|
The character used to prefix formatting commands.
Definition at line 13 of file Message.cpp. |
|
|
The character used to indicate start of left text justification.
Definition at line 14 of file Message.cpp. |
|
|
The character used to indicate start of right text justification.
Definition at line 15 of file Message.cpp. |
|
|
The character used to indicate that the message should be printed.
Definition at line 16 of file Message.cpp. |
|
|
The character used to indicate that the message source should be printed.
Definition at line 18 of file Message.cpp. |
|
|
The character used to indicate that the message type should be printed.
Definition at line 17 of file Message.cpp. |
|
|
The character used to indicate that the previous decimal characters should be taken as the field width.
Definition at line 20 of file Message.cpp. |
|
|
The current fill character.
|
|
|
The format string.
|
|
|
Formatted message.
|
|
|
Justification.
|
|
|
The message.
|
|
|
The source.
|
|
|
The type.
|
|
|
The current field width.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000