All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Message.cpp File Reference
#include <string>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include "GaudiKernel/IMessageSvc.h"
#include "GaudiKernel/Message.h"
#include "GaudiKernel/Timing.h"
#include "GaudiKernel/Time.h"
Include dependency graph for Message.cpp:

Go to the source code of this file.

Macros

#define SET(x)   case x: level=#x; break
 

Functions

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...
 

Macro Definition Documentation

#define SET (   x)    case x: level=#x; break

Function Documentation

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

Insert the message into a stream.

Definition at line 150 of file Message.cpp.

151 {
152  msg.makeFormattedMsg( msg.m_format );
153  stream << msg.m_formatted_msg;
154  return stream;
155 }
std::string m_formatted_msg
Formatted message.
Definition: Message.h:106
std::string m_format
The format string.
Definition: Message.h:97
void makeFormattedMsg(const std::string &format) const
Format the message.
Definition: Message.cpp:265
bool operator== ( const Message a,
const Message b 
)

Insert the message into a stream.

Definition at line 176 of file Message.cpp.

177 {
178  return a.m_source == b.m_source &&
179  a.m_type == b.m_type &&
180  a.m_message == b.m_message;
181 }
std::string m_message
The message.
Definition: Message.h:91
std::string m_source
The source.
Definition: Message.h:94
int m_type
The type.
Definition: Message.h:103