CMS 3D CMS Logo

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

#include <MessageLogger.h>

Public Member Functions

template<typename F >
LogProblemlog (F &&iF)
 
 LogProblem (std::string const &id)
 
template<class T >
LogProblemoperator<< (T const &t)
 
LogProblemoperator<< (std::ostream &(*f)(std::ostream &))
 
LogProblemoperator<< (std::ios_base &(*f)(std::ios_base &))
 
 ~LogProblem ()
 

Private Member Functions

 LogProblem (LogProblem const &)=delete
 
LogProblemoperator= (LogProblem const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 342 of file MessageLogger.h.

Constructor & Destructor Documentation

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

Definition at line 345 of file MessageLogger.h.

346  : ap ( ELerror,id,true,!MessageDrop::instance()->errorEnabled ) // Change log 24
347  { }
static MessageDrop * instance()
Definition: MessageDrop.cc:60
ELslProxy< ELerrorGen > const ELerror
MessageSender ap
edm::LogProblem::~LogProblem ( )

Definition at line 61 of file MessageLogger.cc.

61 {}
edm::LogProblem::LogProblem ( LogProblem const &  )
privatedelete

Member Function Documentation

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

Definition at line 361 of file MessageLogger.h.

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

361  {
362  if(ap.valid()) {
363  iF(ap);
364  }
365  return *this;
366  }
MessageSender ap
template<class T >
LogProblem& edm::LogProblem::operator<< ( T const &  t)
inline

Definition at line 352 of file MessageLogger.h.

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

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

Definition at line 354 of file MessageLogger.h.

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

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

Definition at line 357 of file MessageLogger.h.

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

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

Member Data Documentation

MessageSender edm::LogProblem::ap
private

Definition at line 369 of file MessageLogger.h.