CMS 3D CMS Logo

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

#include <MessageLogger.h>

Inheritance diagram for edm::LogError:
cscdqm::LogError

Public Member Functions

template<typename F >
LogErrorlog (F &&iF)
 
 LogError (std::string const &id)
 
LogErroroperator<< (std::ios_base &(*f)(std::ios_base &))
 
LogErroroperator<< (std::ostream &(*f)(std::ostream &))
 
template<class T >
LogErroroperator<< (T const &t)
 
 ~LogError ()
 

Private Member Functions

 LogError (LogError const &)=delete
 
LogErroroperator= (LogError const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 183 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ LogError() [1/2]

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

Definition at line 185 of file MessageLogger.h.

186  : ap(ELerror, id, false, !MessageDrop::instance()->errorEnabled) // Change log 24
187  {}

◆ ~LogError()

edm::LogError::~LogError ( )

Definition at line 54 of file MessageLogger.cc.

54 {}

◆ LogError() [2/2]

edm::LogError::LogError ( LogError const &  )
privatedelete

Member Function Documentation

◆ log()

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

Definition at line 208 of file MessageLogger.h.

208  {
209  if (ap.valid()) {
210  iF(ap);
211  }
212  return *this;
213  }

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

◆ operator<<() [1/3]

LogError& edm::LogError::operator<< ( std::ios_base &(*)(std::ios_base &)  f)
inline

Definition at line 201 of file MessageLogger.h.

201  {
202  if (ap.valid())
203  ap << f;
204  return *this;
205  }

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

◆ operator<<() [2/3]

LogError& edm::LogError::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Definition at line 196 of file MessageLogger.h.

196  {
197  if (ap.valid())
198  ap << f;
199  return *this;
200  }

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

◆ operator<<() [3/3]

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

Definition at line 191 of file MessageLogger.h.

191  {
192  if (ap.valid())
193  ap << t;
194  return *this;
195  }

References ap, OrderedSet::t, and edm::MessageSender::valid().

◆ operator=()

LogError& edm::LogError::operator= ( LogError const &  )
privatedelete

Member Data Documentation

◆ ap

MessageSender edm::LogError::ap
private

Definition at line 216 of file MessageLogger.h.

Referenced by log(), and operator<<().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::MessageSender::valid
bool valid()
Definition: MessageSender.h:45
edm::LogError::ap
MessageSender ap
Definition: MessageLogger.h:216
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::MessageDrop::instance
static MessageDrop * instance()
Definition: MessageDrop.cc:60
edm::ELerror
const ELslProxy< ELerrorGen > ELerror
Definition: ELseverityLevel.cc:308