CMS 3D CMS Logo

Classes | Public Member Functions | Static Public Attributes | Private Attributes

edm::MessageSender Class Reference

#include <MessageSender.h>

List of all members.

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 ()

Static Public Attributes

static bool errorSummaryIsBeingKept = false
static std::map
< ErrorSummaryMapKey, unsigned
int > 
errorSummaryMap
static bool freshError = false

Private Attributes

boost::shared_ptr< ErrorObjerrorobj_p

Detailed Description

Definition at line 32 of file MessageSender.h.


Constructor & Destructor Documentation

edm::MessageSender::MessageSender ( ) [inline]

Definition at line 41 of file MessageSender.h.

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

Definition at line 26 of file MessageSender.cc.

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

Definition at line 86 of file MessageSender.cc.

{
}

Member Function Documentation

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

Definition at line 50 of file MessageSender.h.

References matplotRender::t, and valid().

  {
    if (valid()) (*errorobj_p) << t;
    return *this;
  }
bool edm::MessageSender::valid ( void  ) [inline]

Member Data Documentation

boost::shared_ptr<ErrorObj> edm::MessageSender::errorobj_p [private]

Definition at line 66 of file MessageSender.h.

Referenced by valid().

std::map< ErrorSummaryMapKey, unsigned int > MessageSender::errorSummaryMap [static]
bool MessageSender::freshError = false [static]