CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::LogDebug_ Class Reference

#include <MessageLogger.h>

Public Member Functions

template<typename F >
LogDebug_log (F &&iF)
 
 LogDebug_ ()
 
 LogDebug_ (std::string const &id, std::string const &file, int line)
 
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

MessageSender ap
 

Detailed Description

Definition at line 448 of file MessageLogger.h.

Constructor & Destructor Documentation

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

Definition at line 118 of file MessageLogger.cc.

References AlCaHLTBitMon_QueryRunRegistry::string, and stripLeadingDirectoryTree().

119  : ap( ELdebug,id)
120 {
121  *this
122  << " "
124  << ":" << line << "\n";
125 }
ELslProxy< ELdebugGen > const ELdebug
MessageSender ap
std::string stripLeadingDirectoryTree(const std::string &file) const
edm::LogDebug_::~LogDebug_ ( )

Definition at line 58 of file MessageLogger.cc.

58 {}

Member Function Documentation

template<typename F >
LogDebug_& edm::LogDebug_::log ( F &&  iF)
inline

Definition at line 474 of file MessageLogger.h.

References edm::LogWarning::ap, and edm::MessageSender::valid().

474  {
475  if(ap.valid()) {
476  iF(ap);
477  }
478  return *this;
479  }
MessageSender ap
template<class T >
LogDebug_& edm::LogDebug_::operator<< ( T const &  t)
inline

Definition at line 457 of file MessageLogger.h.

References edm::LogWarning::ap, and edm::MessageSender::valid().

458  {
459  if (ap.valid()) ap << t;
460  return *this; }
MessageSender ap
LogDebug_& edm::LogDebug_::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 462 of file MessageLogger.h.

References edm::LogWarning::ap, f, and edm::MessageSender::valid().

463  {
464  if (ap.valid()) ap << f;
465  return *this; }
MessageSender ap
double f[11][100]
LogDebug_& edm::LogDebug_::operator<< ( std::ios_base &(*)(std::ios_base &)  f)
inline

Definition at line 467 of file MessageLogger.h.

References edm::LogWarning::ap, f, and edm::MessageSender::valid().

468  {
469  if (ap.valid()) ap << f;
470  return *this; }
MessageSender ap
double f[11][100]
std::string edm::LogDebug_::stripLeadingDirectoryTree ( const std::string &  file) const
private

Definition at line 128 of file MessageLogger.cc.

References FrontierConditions_GlobalTag_cff::file.

Referenced by LogDebug_().

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

Member Data Documentation

MessageSender edm::LogDebug_::ap
private

Definition at line 482 of file MessageLogger.h.