The Gaudi Framework  v36r1 (3e2fb5a8)
Gaudi::Examples::CountingConsumer Struct Referencefinal
Inheritance diagram for Gaudi::Examples::CountingConsumer:
Collaboration diagram for Gaudi::Examples::CountingConsumer:

Public Member Functions

void operator() () const override
 

Public Attributes

Gaudi::Accumulators::MsgCounter< MSG::ERRORm_err {this, "This is not an error...", 3}
 
Gaudi::Accumulators::MsgCounter< MSG::WARNINGm_warn {this, "This is not a warning...", 2}
 
Gaudi::Accumulators::MsgCounter< MSG::INFOm_info {this, "This is not info...", 1}
 

Detailed Description

Definition at line 27 of file MakeAndConsume.cpp.

Member Function Documentation

◆ operator()()

void Gaudi::Examples::CountingConsumer::operator() ( ) const
inlineoverride

Definition at line 33 of file MakeAndConsume.cpp.

33  {
34  always() << "CountingConsumer: incrementing \"This is not an error\" twice" << endmsg;
35  ++m_err;
36  m_err += true;
37  m_err += false; // should do nothing...
38  always() << "CountingConsumer: incrementing \"This is not a warning\" twice" << endmsg;
39  ++m_warn;
40  m_warn += true;
41  m_warn += false; // should do nothing...
42  always() << "CountingConsumer: incrementing \"This is not info\" twice" << endmsg;
43  ++m_info;
44  m_info += true;
45  m_info += false; // should do nothing...
46  }

Member Data Documentation

◆ m_err

Gaudi::Accumulators::MsgCounter<MSG::ERROR> Gaudi::Examples::CountingConsumer::m_err {this, "This is not an error...", 3}
mutable

Definition at line 29 of file MakeAndConsume.cpp.

◆ m_info

Gaudi::Accumulators::MsgCounter<MSG::INFO> Gaudi::Examples::CountingConsumer::m_info {this, "This is not info...", 1}
mutable

Definition at line 31 of file MakeAndConsume.cpp.

◆ m_warn

Gaudi::Accumulators::MsgCounter<MSG::WARNING> Gaudi::Examples::CountingConsumer::m_warn {this, "This is not a warning...", 2}
mutable

Definition at line 30 of file MakeAndConsume.cpp.


The documentation for this struct was generated from the following file:
Gaudi::Examples::CountingConsumer::m_info
Gaudi::Accumulators::MsgCounter< MSG::INFO > m_info
Definition: MakeAndConsume.cpp:31
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
Gaudi::Examples::CountingConsumer::m_err
Gaudi::Accumulators::MsgCounter< MSG::ERROR > m_err
Definition: MakeAndConsume.cpp:29
Gaudi::Examples::CountingConsumer::m_warn
Gaudi::Accumulators::MsgCounter< MSG::WARNING > m_warn
Definition: MakeAndConsume.cpp:30