The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
Message.cpp File Reference
#include <GaudiKernel/IMessageSvc.h>
#include <GaudiKernel/Message.h>
#include <GaudiKernel/ThreadLocalContext.h>
#include <GaudiKernel/Time.h>
#include <GaudiKernel/Timing.h>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <string>
Include dependency graph for Message.cpp:

Go to the source code of this file.

Macros

#define SET(x)
 

Functions

std::ostream & operator<< (std::ostream &stream, const Message &msg)
 
bool operator< (const Message &lhs, const Message &rhs)
 
bool operator== (const Message &a, const Message &b)
 

Macro Definition Documentation

◆ SET

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

Function Documentation

◆ operator<()

bool operator< ( const Message & lhs,
const Message & rhs )

Definition at line 76 of file Message.cpp.

76 {
77 return lhs.m_type < rhs.m_type || lhs.m_source < rhs.m_source || lhs.m_message < rhs.m_message;
78}
std::string m_message
The message text.
Definition Message.h:107
int m_type
The message type/level.
Definition Message.h:109
std::string m_source
The message source.
Definition Message.h:108

◆ operator<<()

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

Definition at line 64 of file Message.cpp.

64 {
65 msg.makeFormattedMsg( msg.m_format );
66 stream << msg.m_formatted_msg;
67 return stream;
68}
stream
Definition Write.py:32

◆ operator==()

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

Definition at line 86 of file Message.cpp.

86 {
87 return a.m_source == b.m_source && a.m_type == b.m_type && a.m_message == b.m_message;
88}