| The Gaudi Framework v32r1 (f65d50dc)

TBBMessageSvc.cpp
Go to the documentation of this file.
1 #include "TBBMessageSvc.h"
2
3 // ----------------------------------------------------------------------------
4 // Implementation file for class: TBBMessageSvc
5 //
6 // 22/06/2012: Marco Clemencic
7 // ----------------------------------------------------------------------------
8 DECLARE_COMPONENT( TBBMessageSvc )
9
10 void TBBMessageSvc::reportMessage( const Message& msg, int outputLevel ) {
11 m_messageQueue.add( new MessageWithLevel( *this, msg, outputLevel ) );
12 }
13
14 void TBBMessageSvc::reportMessage( const Message& msg ) { m_messageQueue.add( new MessageWithoutLevel( *this, msg ) ); }
15
16 void TBBMessageSvc::reportMessage( const StatusCode& code, const std::string& source ) {
17 m_messageQueue.add( new StatusCodeMessage( *this, code, source ) );
18 }
19
20 // ============================================================================
TBBMessageSvc::m_messageQueue
Gaudi::SerialTaskQueue m_messageQueue
Definition: TBBMessageSvc.h:86
TBBMessageSvc::reportMessage
void reportMessage(const Message &msg) override
Implementation of IMessageSvc::reportMessage()
Definition: TBBMessageSvc.cpp:14
TBBMessageSvc.h
std::string
STL class.
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
TBBMessageSvc::MessageWithLevel
Specialized class to report a message with explicit output level.
Definition: TBBMessageSvc.h:50
TBBMessageSvc::StatusCodeMessage
Specialized class to report a StatusCode message.
Definition: TBBMessageSvc.h:75
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
TBBMessageSvc
Definition: TBBMessageSvc.h:20
CommonMessagingBase::msg
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:113
Message
The Message class.
Definition: Message.h:17
Gaudi::SerialTaskQueue::add
void add(WorkItem *item)
Enqueue a WorkItem for execution.
Definition: SerialTaskQueue.cpp:18
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:8
TBBMessageSvc::MessageWithoutLevel
Specialized class to report a message with implicit output level.
Definition: TBBMessageSvc.h:62