CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::LogDebug_ Class Reference

#include <MessageLogger.h>

Public Member Functions

 LogDebug_ (std::string const &id, std::string const &file, int line)
 
 LogDebug_ ()
 
template<class T >
LogDebug_operator<< (T const &t)
 
LogDebug_operator<< (std::ostream &(*f)(std::ostream &))
 
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< MessageSenderap
 
bool debugEnabled
 

Detailed Description

Definition at line 375 of file MessageLogger.h.

Constructor & Destructor Documentation

edm::LogDebug_::LogDebug_ ( std::string const &  id,
std::string const &  file,
int  line 
)
explicit

Definition at line 121 of file MessageLogger.cc.

References stripLeadingDirectoryTree().

122  : ap( new MessageSender(ELsuccess,id) )
124 { *this
125  << " "
127  << ":" << line << "\n"; }
ELslProxy< ELsuccessGen > const ELsuccess
std::auto_ptr< MessageSender > ap
static bool debugAlwaysSuppressed
Definition: MessageDrop.h:106
std::string stripLeadingDirectoryTree(const std::string &file) const
edm::LogDebug_::LogDebug_ ( )
inlineexplicit

Definition at line 379 of file MessageLogger.h.

379 : ap(), debugEnabled(false) {} // Change log 8
std::auto_ptr< MessageSender > ap
edm::LogDebug_::~LogDebug_ ( )

Definition at line 58 of file MessageLogger.cc.

58 {}

Member Function Documentation

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

Definition at line 384 of file MessageLogger.h.

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

385  { if (!debugEnabled) return *this; // Change log 8
386  if (ap.get()) (*ap) << t;
388  (edm::errors::LogicError,"operator << to stale copied LogDebug_ object");
389  return *this; }
std::auto_ptr< MessageSender > ap
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Definition: EDMException.cc:81
LogDebug_& edm::LogDebug_::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 391 of file MessageLogger.h.

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

392  { if (!debugEnabled) return *this; // Change log 8
393  if (ap.get()) (*ap) << f;
395  (edm::errors::LogicError,"operator << to stale copied LogDebug_ object");
396  return *this; }
std::auto_ptr< MessageSender > ap
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Definition: EDMException.cc:81
double f[11][100]
LogDebug_& edm::LogDebug_::operator<< ( std::ios_base &(*)(std::ios_base &)  f)
inline

Definition at line 398 of file MessageLogger.h.

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

399  { if (!debugEnabled) return *this; // Change log 8
400  if (ap.get()) (*ap) << f;
402  (edm::errors::LogicError,"operator << to stale copied LogDebug_ object");
403  return *this; }
std::auto_ptr< MessageSender > ap
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Definition: EDMException.cc:81
double f[11][100]
std::string edm::LogDebug_::stripLeadingDirectoryTree ( const std::string &  file) const
private

Definition at line 130 of file MessageLogger.cc.

References mergeVDriftHistosByStation::file.

Referenced by LogDebug_().

130  {
131  std::string::size_type lastSlash = file.find_last_of('/');
132  if (lastSlash == std::string::npos) return file;
133  if (lastSlash == file.size()-1) return file;
134  return file.substr(lastSlash+1, file.size()-lastSlash-1);
135 }
uint16_t size_type

Member Data Documentation

std::auto_ptr<MessageSender> edm::LogDebug_::ap
private

Definition at line 407 of file MessageLogger.h.

Referenced by operator<<().

bool edm::LogDebug_::debugEnabled
private

Definition at line 408 of file MessageLogger.h.

Referenced by operator<<().