CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::LogTrace_ Class Reference

#include <MessageLogger.h>

List of all members.

Public Member Functions

 LogTrace_ (std::string const &id)
 LogTrace_ ()
LogTrace_operator<< (std::ostream &(*f)(std::ostream &))
template<class T >
LogTrace_operator<< (T const &t)
LogTrace_operator<< (std::ios_base &(*f)(std::ios_base &))
 ~LogTrace_ ()

Private Attributes

std::auto_ptr< MessageSenderap
bool debugEnabled

Detailed Description

Definition at line 407 of file MessageLogger.h.


Constructor & Destructor Documentation

edm::LogTrace_::LogTrace_ ( std::string const &  id) [explicit]

Definition at line 130 of file MessageLogger.cc.

  : ap( new MessageSender(ELsuccess,id,true) )
  , debugEnabled(!MessageDrop::debugAlwaysSuppressed)           //9/23/10 mf
  {  }
edm::LogTrace_::LogTrace_ ( ) [inline, explicit]

Definition at line 411 of file MessageLogger.h.

: ap(), debugEnabled(false) {}          // Change log 8 
edm::LogTrace_::~LogTrace_ ( )

Definition at line 56 of file MessageLogger.cc.

{}

Member Function Documentation

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

Definition at line 416 of file MessageLogger.h.

References ap, debugEnabled, edm::errors::LogicError, matplotRender::t, and edm::Exception::throwThis().

    { if (!debugEnabled) return *this;                          // Change log 8
      if (ap.get()) (*ap) << t; 
      else Exception::throwThis
       (edm::errors::LogicError,"operator << to stale copied LogTrace_ object"); 
      return *this; }
LogTrace_& edm::LogTrace_::operator<< ( std::ios_base &(*)(std::ios_base &)  f) [inline]

Definition at line 430 of file MessageLogger.h.

References ap, debugEnabled, f, edm::errors::LogicError, and edm::Exception::throwThis().

    { if (!debugEnabled) return *this;                          // Change log 8
      if (ap.get()) (*ap) << f; 
      else Exception::throwThis
       (edm::errors::LogicError,"operator << to stale copied LogTrace_ object"); 
      return *this; }
LogTrace_& edm::LogTrace_::operator<< ( std::ostream &(*)(std::ostream &)  f) [inline]

Definition at line 423 of file MessageLogger.h.

References ap, debugEnabled, f, edm::errors::LogicError, and edm::Exception::throwThis().

    { if (!debugEnabled) return *this;                          // Change log 8
      if (ap.get()) (*ap) << f; 
      else Exception::throwThis
       (edm::errors::LogicError,"operator << to stale copied LogTrace_ object"); 
      return *this; }

Member Data Documentation

std::auto_ptr<MessageSender> edm::LogTrace_::ap [private]

Definition at line 439 of file MessageLogger.h.

Referenced by operator<<().

Definition at line 440 of file MessageLogger.h.

Referenced by operator<<().