CMS 3D CMS Logo

edm::LogTrace_ Class Reference

#include <FWCore/MessageLogger/interface/MessageLogger.h>

List of all members.

Public Member Functions

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

Private Attributes

std::auto_ptr< MessageSenderap
bool debugEnabled


Detailed Description

Definition at line 343 of file MessageLogger.h.


Constructor & Destructor Documentation

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

Definition at line 346 of file MessageLogger.h.

00347     : ap( new MessageSender(ELsuccess,id,true) )
00348     , debugEnabled(true)                                        // Change log 8
00349   {  }

edm::LogTrace_::LogTrace_ (  )  [inline, explicit]

Definition at line 350 of file MessageLogger.h.

00350 : ap(), debugEnabled(false) {}          // Change log 8 


Member Function Documentation

LogTrace_& edm::LogTrace_::operator<< ( std::ios_base &(*)(std::ios_base &)  f  )  [inline]

Definition at line 367 of file MessageLogger.h.

References ap, debugEnabled, f, and edm::errors::LogicError.

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

LogTrace_& edm::LogTrace_::operator<< ( std::ostream &(*)(std::ostream &)  f  )  [inline]

Definition at line 360 of file MessageLogger.h.

References ap, debugEnabled, f, and edm::errors::LogicError.

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

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

Definition at line 353 of file MessageLogger.h.

References ap, debugEnabled, and edm::errors::LogicError.

00354     { if (!debugEnabled) return *this;                          // Change log 8
00355       if (ap.get()) (*ap) << t; 
00356       else throw edm::Exception
00357        (edm::errors::LogicError,"operator << to stale copied LogTrace_ object"); 
00358       return *this; }


Member Data Documentation

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

Definition at line 376 of file MessageLogger.h.

Referenced by operator<<().

bool edm::LogTrace_::debugEnabled [private]

Definition at line 377 of file MessageLogger.h.

Referenced by operator<<().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:41:46 2009 for CMSSW by  doxygen 1.5.4