CMS 3D CMS Logo

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

#include <MessageLogger.h>

Inheritance diagram for edm::LogWarning:
cscdqm::LogWarn

Public Member Functions

template<typename F >
LogWarninglog (F &&iF)
 
 LogWarning (std::string const &id)
 
LogWarningoperator<< (std::ios_base &(*f)(std::ios_base &))
 
LogWarningoperator<< (std::ostream &(*f)(std::ostream &))
 
template<class T >
LogWarningoperator<< (T const &t)
 
 ~LogWarning ()
 

Private Member Functions

 LogWarning (LogWarning const &)=delete
 
LogWarningoperator= (LogWarning const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 141 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ LogWarning() [1/2]

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

Definition at line 143 of file MessageLogger.h.

144  : ap(ELwarning,
145  id,
146  false,
147  (MessageDrop::warningAlwaysSuppressed || !MessageDrop::instance()->warningEnabled)) // Change log 21
148  {}

◆ ~LogWarning()

edm::LogWarning::~LogWarning ( )

Definition at line 53 of file MessageLogger.cc.

53 {}

◆ LogWarning() [2/2]

edm::LogWarning::LogWarning ( LogWarning const &  )
privatedelete

Member Function Documentation

◆ log()

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

Definition at line 169 of file MessageLogger.h.

169  {
170  if (ap.valid()) {
171  iF(ap);
172  }
173  return *this;
174  }

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

Referenced by dqm::implementation::DQMStore::debugTrackME(), and dqm::implementation::DQMStore::printTrace().

◆ operator<<() [1/3]

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

Definition at line 162 of file MessageLogger.h.

162  {
163  if (ap.valid())
164  ap << f;
165  return *this;
166  }

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

◆ operator<<() [2/3]

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

Definition at line 157 of file MessageLogger.h.

157  {
158  if (ap.valid())
159  ap << f;
160  return *this;
161  }

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

◆ operator<<() [3/3]

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

Definition at line 152 of file MessageLogger.h.

152  {
153  if (ap.valid())
154  ap << t;
155  return *this;
156  }

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

◆ operator=()

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

Member Data Documentation

◆ ap

MessageSender edm::LogWarning::ap
private

Definition at line 177 of file MessageLogger.h.

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

edm::ELwarning
const ELslProxy< ELwarningGen > ELwarning
Definition: ELseverityLevel.cc:302
edm::MessageDrop::warningAlwaysSuppressed
static bool warningAlwaysSuppressed
Definition: MessageDrop.h:112
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::MessageSender::valid
bool valid()
Definition: MessageSender.h:45
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::MessageDrop::instance
static MessageDrop * instance()
Definition: MessageDrop.cc:60
edm::LogWarning::ap
MessageSender ap
Definition: MessageLogger.h:177