CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::persistency::MsgDispatcher Class Reference

#include <CoralMsgReporter.h>

Public Member Functions

bool hasRecipient ()
 
 MsgDispatcher ()=delete
 
 MsgDispatcher (Logger &logger)
 
Loggerrecipient ()
 
void unsubscribe ()
 
virtual ~MsgDispatcher ()
 

Private Attributes

Loggerm_recipient = nullptr
 

Detailed Description

Definition at line 16 of file CoralMsgReporter.h.

Constructor & Destructor Documentation

◆ MsgDispatcher() [1/2]

cond::persistency::MsgDispatcher::MsgDispatcher ( )
delete

◆ MsgDispatcher() [2/2]

cond::persistency::MsgDispatcher::MsgDispatcher ( Logger logger)
explicit

Definition at line 10 of file CoralMsgReporter.cc.

References fwlog::logger(), and m_recipient.

10 { m_recipient = &logger; }
std::ostream & logger()
Definition: fwLog.cc:36

◆ ~MsgDispatcher()

virtual cond::persistency::MsgDispatcher::~MsgDispatcher ( )
inlinevirtual

Definition at line 20 of file CoralMsgReporter.h.

20 {}

Member Function Documentation

◆ hasRecipient()

bool cond::persistency::MsgDispatcher::hasRecipient ( )

Definition at line 14 of file CoralMsgReporter.cc.

14 { return m_recipient != nullptr; }

◆ recipient()

cond::persistency::Logger & cond::persistency::MsgDispatcher::recipient ( )

Definition at line 16 of file CoralMsgReporter.cc.

◆ unsubscribe()

void cond::persistency::MsgDispatcher::unsubscribe ( void  )

Definition at line 12 of file CoralMsgReporter.cc.

12 { m_recipient = nullptr; }

Member Data Documentation

◆ m_recipient

Logger* cond::persistency::MsgDispatcher::m_recipient = nullptr
private

Definition at line 28 of file CoralMsgReporter.h.

Referenced by MsgDispatcher().