| The Gaudi Framework v29r1 (5cd95fa2)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Functions
Message.h File Reference
`#include "GaudiKernel/Kernel.h"`
`#include <iostream>`
`#include <string>`
Include dependency graph for Message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | Message
| The Message class. More...

## Functions
GAUDI_API std::ostream & | operator<< (std::ostream &stream, const Message &msg)
| Insert the message into a stream. More...
GAUDI_API bool | operator== (const Message &a, const Message &b)
| Insert the message into a stream. More...

## Function Documentation

GAUDI_API std::ostream& operator<< | ( | std::ostream & | stream,
|  | const Message & | msg
| ) |  |

Insert the message into a stream.

Definition at line 119 of file Message.cpp.

120 {
121 msg.makeFormattedMsg( msg.m_format );
122 stream << msg.m_formatted_msg;
123 return stream;
124 }
Message::m_formatted_msg
std::string m_formatted_msg
Formatted message.
Definition: Message.h:107
Message::m_format
std::string m_format
The format string.
Definition: Message.h:98
Message::makeFormattedMsg
void makeFormattedMsg(const std::string &format) const
Format the message.
Definition: Message.cpp:214

GAUDI_API bool operator== | ( | const Message & | a,
|  | const Message & | b
| ) |  |

Insert the message into a stream.

Definition at line 143 of file Message.cpp.

144 {
145 return a.m_source == b.m_source && a.m_type == b.m_type && a.m_message == b.m_message;
146 }
Message::m_message
std::string m_message
The message.
Definition: Message.h:92
Message::m_source
std::string m_source
The source.
Definition: Message.h:95
Message::m_type
int m_type
The type.
Definition: Message.h:104