CMS 3D CMS Logo

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

#include <MessageLogger.h>

Public Member Functions

template<typename F >
LogPrintlog (F &&iF)
 
 LogPrint (std::string const &id)
 
template<class T >
LogPrintoperator<< (T const &t)
 
LogPrintoperator<< (std::ostream &(*f)(std::ostream &))
 
LogPrintoperator<< (std::ios_base &(*f)(std::ios_base &))
 
 ~LogPrint ()
 

Private Member Functions

 LogPrint (LogPrint const &)=delete
 
LogPrintoperator= (LogPrint const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 306 of file MessageLogger.h.

Constructor & Destructor Documentation

edm::LogPrint::LogPrint ( std::string const &  id)
inlineexplicit

Definition at line 309 of file MessageLogger.h.

310  : ap ( ELwarning,id,true,(MessageDrop::warningAlwaysSuppressed || !MessageDrop::instance()->warningEnabled)) // Change log 21
311  { }
MessageSender ap
static MessageDrop * instance()
Definition: MessageDrop.cc:60
ELslProxy< ELwarningGen > const ELwarning
static bool warningAlwaysSuppressed
Definition: MessageDrop.h:114
edm::LogPrint::~LogPrint ( )

Definition at line 60 of file MessageLogger.cc.

60 {}
edm::LogPrint::LogPrint ( LogPrint const &  )
privatedelete

Member Function Documentation

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

Definition at line 326 of file MessageLogger.h.

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

326  {
327  if(ap.valid()) {
328  iF(ap);
329  }
330  return *this;
331  }
MessageSender ap
template<class T >
LogPrint& edm::LogPrint::operator<< ( T const &  t)
inline

Definition at line 316 of file MessageLogger.h.

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

316 { if(ap.valid()) ap << t; return *this; }
MessageSender ap
LogPrint& edm::LogPrint::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 319 of file MessageLogger.h.

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

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

Definition at line 322 of file MessageLogger.h.

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

323  { if(ap.valid()) ap << f; return *this; }
MessageSender ap
double f[11][100]
LogPrint& edm::LogPrint::operator= ( LogPrint const &  )
privatedelete

Member Data Documentation

MessageSender edm::LogPrint::ap
private

Definition at line 334 of file MessageLogger.h.