TBBMessageSvc Class Reference

#include <src/MessageSvc/TBBMessageSvc.h>

Inheritance diagram for TBBMessageSvc:
Collaboration diagram for TBBMessageSvc:

Classes

class  MessageTaskCommon
 Common base class for the different reportMessage cases. More...
 
class  MessageWithLevel
 Specialized class to report a message with explicit output level. More...
 
class  MessageWithoutLevel
 Specialized class to report a message with implicit output level. More...
 
class  StatusCodeMessage
 Specialized class to report a StatusCode message. More...
 

Public Member Functions

 TBBMessageSvc (const std::string &name, ISvcLocator *pSvcLocator)
 Standard constructor. More...
 
virtual ~TBBMessageSvc ()
 Destructor. More...
 
virtual StatusCode initialize ()
 Initialization of the service. More...
 
virtual StatusCode finalize ()
 Finalization of the service. More...
 
virtual void reportMessage (const Message &msg)
 Implementation of IMessageSvc::reportMessage() More...
 
virtual void reportMessage (const Message &msg, int outputLevel)
 Implementation of IMessageSvc::reportMessage() More...
 
virtual void reportMessage (const StatusCode &code, const std::string &source="")
 Implementation of IMessageSvc::reportMessage() More...
 
- Public Member Functions inherited from MessageSvc
 MessageSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~MessageSvc () override=default
 
StatusCode reinitialize () override
 Reinitialize Service. More...
 
StatusCode initialize () override
 Initialize Service. More...
 
StatusCode finalize () override
 Finalize Service. More...
 
void reportMessage (const Message &message) override
 
void reportMessage (const Message &msg, int outputLevel) override
 
void reportMessage (const StatusCode &code, const std::string &source="") override
 
void reportMessage (const char *source, int type, const char *message) override
 
void reportMessage (const std::string &source, int type, const std::string &message) override
 
void insertMessage (const StatusCode &code, const Message &message) override
 
void eraseMessage () override
 
void eraseMessage (const StatusCode &code) override
 
void eraseMessage (const StatusCode &code, const Message &message) override
 
void insertStream (int message_type, const std::string &name, std::ostream *stream) override
 
void eraseStream () override
 
void eraseStream (int message_type) override
 
void eraseStream (int message_type, std::ostream *stream) override
 
void eraseStream (std::ostream *stream) override
 
std::ostream * defaultStream () const override
 
void setDefaultStream (std::ostream *stream) override
 
int outputLevel () const override
 
int outputLevel (const std::string &source) const override
 
void setOutputLevel (int new_level) override
 
void setOutputLevel (const std::string &source, int new_level) override
 
bool useColor () const override
 
std::string getLogColor (int logLevel) const override
 
int messageCount (MSG::Level logLevel) const override
 
void incrInactiveCount (MSG::Level level, const std::string &src) override
 
- Public Member Functions inherited from extends< BASE, Interfaces >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
- Public Member Functions inherited from extend_interfaces< Interfaces...>
 ~extend_interfaces () override=default
 Virtual destructor. More...
 
 ~extend_interfaces () override=default
 Virtual destructor. More...
 

Private Attributes

Gaudi::SerialTaskQueue m_messageQueue
 

Additional Inherited Members

- Public Types inherited from MessageSvc
typedef std::pair< std::string, std::ostream * > NamedStream
 
typedef std::multimap< int, NamedStreamStreamMap
 
typedef std::multimap< StatusCode, MessageMessageMap
 
typedef std::map< std::string, int > ThresholdMap
 
- Public Types inherited from extends< BASE, Interfaces >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
- Public Types inherited from extend_interfaces< Interfaces...>
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 
- Protected Member Functions inherited from MessageSvc
virtual void i_reportMessage (const Message &msg, int outputLevel)
 Internal implementation of reportMessage(const Message&,int) without lock. More...
 
virtual void i_reportMessage (const StatusCode &code, const std::string &source)
 Internal implementation of reportMessage(const StatusCode&,const std::string&) without lock. More...
 

Detailed Description

Definition at line 20 of file TBBMessageSvc.h.

Constructor & Destructor Documentation

TBBMessageSvc::TBBMessageSvc ( const std::string &  name,
ISvcLocator pSvcLocator 
)

Standard constructor.

Definition at line 18 of file TBBMessageSvc.cpp.

19  : MessageSvc(name, pSvcLocator)
20 {
21 }
MessageSvc(const std::string &name, ISvcLocator *svcloc)
Definition: MessageSvc.cpp:57
TBBMessageSvc::~TBBMessageSvc ( )
virtual

Destructor.

Definition at line 26 of file TBBMessageSvc.cpp.

26  {
27 }

Member Function Documentation

StatusCode TBBMessageSvc::finalize ( )
virtual

Finalization of the service.

Definition at line 42 of file TBBMessageSvc.cpp.

42  {
43  return MessageSvc::finalize(); // must be called after all other actions
44 }
StatusCode finalize() override
Finalize Service.
Definition: MessageSvc.cpp:317
StatusCode TBBMessageSvc::initialize ( )
virtual

Initialization of the service.

Definition at line 32 of file TBBMessageSvc.cpp.

32  {
33  StatusCode sc = MessageSvc::initialize(); // must be executed first
34  if ( sc.isFailure() ) return sc; // error printed already by MessageSvc
35 
36  return StatusCode::SUCCESS;
37 }
bool isFailure() const
Test for a status code of FAILURE.
Definition: StatusCode.h:86
StatusCode initialize() override
Initialize Service.
Definition: MessageSvc.cpp:119
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
void TBBMessageSvc::reportMessage ( const Message msg)
virtual

Implementation of IMessageSvc::reportMessage()

Definition at line 50 of file TBBMessageSvc.cpp.

50  {
51  m_messageQueue.add(new MessageWithoutLevel(*this, msg));
52 }
Gaudi::SerialTaskQueue m_messageQueue
void add(WorkItem *item)
Enqueue a WorkItem for execution.
void TBBMessageSvc::reportMessage ( const Message msg,
int  outputLevel 
)
virtual

Implementation of IMessageSvc::reportMessage()

Definition at line 46 of file TBBMessageSvc.cpp.

46  {
47  m_messageQueue.add(new MessageWithLevel(*this, msg, outputLevel));
48 }
Gaudi::SerialTaskQueue m_messageQueue
void add(WorkItem *item)
Enqueue a WorkItem for execution.
int outputLevel() const override
Definition: MessageSvc.cpp:689
void TBBMessageSvc::reportMessage ( const StatusCode code,
const std::string &  source = "" 
)
virtual

Implementation of IMessageSvc::reportMessage()

Definition at line 54 of file TBBMessageSvc.cpp.

54  {
55  m_messageQueue.add(new StatusCodeMessage(*this, code, source));
56 }
Gaudi::SerialTaskQueue m_messageQueue
void add(WorkItem *item)
Enqueue a WorkItem for execution.

Member Data Documentation

Gaudi::SerialTaskQueue TBBMessageSvc::m_messageQueue
private

Definition at line 104 of file TBBMessageSvc.h.


The documentation for this class was generated from the following files: