Message.h File Reference
#include <string>
#include <iostream>
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...
 
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 117 of file Message.cpp.

118 {
119  msg.makeFormattedMsg( msg.m_format );
120  stream << msg.m_formatted_msg;
121  return stream;
122 }
std::string m_formatted_msg
Formatted message.
Definition: Message.h:105
std::string m_format
The format string.
Definition: Message.h:96
void makeFormattedMsg(const std::string &format) const
Format the message.
Definition: Message.cpp:231
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 &&
146  a.m_type == b.m_type &&
147  a.m_message == b.m_message;
148 }
std::string m_message
The message.
Definition: Message.h:90
std::string m_source
The source.
Definition: Message.h:93
int m_type
The type.
Definition: Message.h:102