#include <MessageLogger.h>
Public Member Functions | |
LogDebug_ (std::string const &id, std::string const &file, int line) | |
LogDebug_ () | |
LogDebug_ & | operator<< (std::ostream &(*f)(std::ostream &)) |
template<class T > | |
LogDebug_ & | operator<< (T const &t) |
LogDebug_ & | operator<< (std::ios_base &(*f)(std::ios_base &)) |
~LogDebug_ () | |
Private Member Functions | |
std::string | stripLeadingDirectoryTree (const std::string &file) const |
Private Attributes | |
std::auto_ptr< MessageSender > | ap |
bool | debugEnabled |
Definition at line 369 of file MessageLogger.h.
edm::LogDebug_::LogDebug_ | ( | std::string const & | id, |
std::string const & | file, | ||
int | line | ||
) | [explicit] |
Definition at line 114 of file MessageLogger.cc.
References stripLeadingDirectoryTree().
: ap( new MessageSender(ELsuccess,id) ) , debugEnabled(!MessageDrop::debugAlwaysSuppressed) //9/23/10 mf { *this << " " << stripLeadingDirectoryTree(file) << ":" << line << "\n"; }
edm::LogDebug_::LogDebug_ | ( | ) | [inline, explicit] |
Definition at line 373 of file MessageLogger.h.
: ap(), debugEnabled(false) {} // Change log 8
edm::LogDebug_::~LogDebug_ | ( | ) |
Definition at line 55 of file MessageLogger.cc.
{}
LogDebug_& edm::LogDebug_::operator<< | ( | T const & | t | ) | [inline] |
Definition at line 378 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 LogDebug_ object"); return *this; }
LogDebug_& edm::LogDebug_::operator<< | ( | std::ostream &(*)(std::ostream &) | f | ) | [inline] |
Definition at line 385 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 LogDebug_ object"); return *this; }
LogDebug_& edm::LogDebug_::operator<< | ( | std::ios_base &(*)(std::ios_base &) | f | ) | [inline] |
Definition at line 392 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 LogDebug_ object"); return *this; }
std::string edm::LogDebug_::stripLeadingDirectoryTree | ( | const std::string & | file | ) | const [private] |
Definition at line 123 of file MessageLogger.cc.
References dbtoweb::file.
Referenced by LogDebug_().
std::auto_ptr<MessageSender> edm::LogDebug_::ap [private] |
Definition at line 401 of file MessageLogger.h.
Referenced by operator<<().
bool edm::LogDebug_::debugEnabled [private] |
Definition at line 402 of file MessageLogger.h.
Referenced by operator<<().