CMS 3D CMS Logo

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

#include <MessageLogger.h>

Inheritance diagram for edm::LogInfo:
cscdqm::LogInfo

Public Member Functions

template<typename F >
LogInfolog (F &&iF)
 
 LogInfo (std::string const &id)
 
LogInfooperator<< (std::ios_base &(*f)(std::ios_base &))
 
LogInfooperator<< (std::ostream &(*f)(std::ostream &))
 
template<class T >
LogInfooperator<< (T const &t)
 
 ~LogInfo ()
 

Private Member Functions

 LogInfo (LogInfo const &)=delete
 
LogInfooperator= (LogInfo const &)=delete
 

Private Attributes

MessageSender ap
 

Detailed Description

Definition at line 254 of file MessageLogger.h.

Constructor & Destructor Documentation

◆ LogInfo() [1/2]

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

Definition at line 256 of file MessageLogger.h.

257  : ap(ELinfo,
258  id,
259  false,
260  (MessageDrop::infoAlwaysSuppressed || !MessageDrop::instance()->infoEnabled)) // Change log 21
261  {}

◆ ~LogInfo()

edm::LogInfo::~LogInfo ( )

Definition at line 52 of file MessageLogger.cc.

52 {}

◆ LogInfo() [2/2]

edm::LogInfo::LogInfo ( LogInfo const &  )
privatedelete

Member Function Documentation

◆ log()

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

Definition at line 282 of file MessageLogger.h.

282  {
283  if (ap.valid()) {
284  iF(ap);
285  }
286  return *this;
287  }

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

Referenced by MTDGeometry::MTDGeometry().

◆ operator<<() [1/3]

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

Definition at line 275 of file MessageLogger.h.

275  {
276  if (ap.valid())
277  ap << f;
278  return *this;
279  }

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

◆ operator<<() [2/3]

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

Definition at line 270 of file MessageLogger.h.

270  {
271  if (ap.valid())
272  ap << f;
273  return *this;
274  }

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

◆ operator<<() [3/3]

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

Definition at line 265 of file MessageLogger.h.

265  {
266  if (ap.valid())
267  ap << t;
268  return *this;
269  }

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

◆ operator=()

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

Member Data Documentation

◆ ap

MessageSender edm::LogInfo::ap
private

Definition at line 290 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::MessageDrop::infoAlwaysSuppressed
static bool infoAlwaysSuppressed
Definition: MessageDrop.h:111
OrderedSet.t
t
Definition: OrderedSet.py:90
edm::LogInfo::ap
MessageSender ap
Definition: MessageLogger.h:290
edm::MessageDrop::instance
static MessageDrop * instance()
Definition: MessageDrop.cc:60
edm::ELinfo
const ELslProxy< ELinfoGen > ELinfo
Definition: ELseverityLevel.cc:296