CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
edm::MessageSender Class Reference

#include <MessageSender.h>

Classes

struct  ErrorObjDeleter
 

Public Member Functions

 MessageSender ()
 
 MessageSender (ELseverityLevel const &sev, ELstring const &id, bool verbatim=false, bool suppressed=false)
 
template<class T >
MessageSenderoperator<< (T const &t)
 
bool valid ()
 
 ~MessageSender ()
 

Private Attributes

std::shared_ptr< ErrorObjerrorobj_p
 

Detailed Description

Definition at line 25 of file MessageSender.h.

Constructor & Destructor Documentation

◆ MessageSender() [1/2]

edm::MessageSender::MessageSender ( )
inline

Definition at line 33 of file MessageSender.h.

33 : errorobj_p() {}

◆ MessageSender() [2/2]

MessageSender::MessageSender ( ELseverityLevel const &  sev,
ELstring const &  id,
bool  verbatim = false,
bool  suppressed = false 
)

Definition at line 85 of file MessageSender.cc.

86  : errorobj_p(suppressed ? nullptr : new ErrorObj(sev, id, verbatim), ErrorObjDeleter()) {
87  //std::cout << "MessageSender ctor; new ErrorObj at: " << errorobj_p << '\n';
88 }

◆ ~MessageSender()

MessageSender::~MessageSender ( )

Definition at line 139 of file MessageSender.cc.

139 {}

Member Function Documentation

◆ operator<<()

template<class T >
MessageSender& edm::MessageSender::operator<< ( T const &  t)
inline

Definition at line 39 of file MessageSender.h.

39  {
40  if (valid())
41  (*errorobj_p) << t;
42  return *this;
43  }

References OrderedSet::t, and valid().

◆ valid()

bool edm::MessageSender::valid ( )
inline

Member Data Documentation

◆ errorobj_p

std::shared_ptr<ErrorObj> edm::MessageSender::errorobj_p
private

Definition at line 49 of file MessageSender.h.

Referenced by valid().

edm::ErrorObj
Definition: ErrorObj.h:44
edm::MessageSender::valid
bool valid()
Definition: MessageSender.h:45
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::MessageSender::errorobj_p
std::shared_ptr< ErrorObj > errorobj_p
Definition: MessageSender.h:49