CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 27 of file MessageSender.h.

Constructor & Destructor Documentation

edm::MessageSender::MessageSender ( )
inline

Definition at line 36 of file MessageSender.h.

36 : errorobj_p() {}
std::shared_ptr< ErrorObj > errorobj_p
Definition: MessageSender.h:59
MessageSender::MessageSender ( ELseverityLevel const &  sev,
ELstring const &  id,
bool  verbatim = false,
bool  suppressed = false 
)

Definition at line 87 of file MessageSender.cc.

90 : errorobj_p( suppressed ? 0 : new ErrorObj(sev,id,verbatim), ErrorObjDeleter())
91 {
92  //std::cout << "MessageSender ctor; new ErrorObj at: " << errorobj_p << '\n';
93 }
std::shared_ptr< ErrorObj > errorobj_p
Definition: MessageSender.h:59
MessageSender::~MessageSender ( )

Definition at line 149 of file MessageSender.cc.

150 {
151 }

Member Function Documentation

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

Definition at line 45 of file MessageSender.h.

References edmStreamStallGrapher::t, and valid().

46  {
47 #ifndef __GCCXML__
48  if (valid()) (*errorobj_p) << t;
49 #endif
50  return *this;
51  }
bool edm::MessageSender::valid ( )
inline

Member Data Documentation

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

Definition at line 59 of file MessageSender.h.

Referenced by valid().