The Gaudi Framework  v36r9 (fd2bdac3)
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 69 of file MakeAndConsume.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 75 of file MakeAndConsume.cpp.

75  {
76  always() << "CountingConsumer: incrementing \"This is not an error\" twice" << endmsg;
77  ++m_err;
78  m_err += true;
79  m_err += false; // should do nothing...
80  always() << "CountingConsumer: incrementing \"This is not a warning\" twice" << endmsg;
81  ++m_warn;
82  m_warn += true;
83  m_warn += false; // should do nothing...
84  always() << "CountingConsumer: incrementing \"This is not info\" twice" << endmsg;
85  ++m_info;
86  m_info += true;
87  m_info += false; // should do nothing...
88  }

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 71 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 73 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 72 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:73
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:71
Gaudi::Examples::CountingConsumer::m_warn
Gaudi::Accumulators::MsgCounter< MSG::WARNING > m_warn
Definition: MakeAndConsume.cpp:72