The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::TestSuite::CountingConsumer Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::CountingConsumer:
Collaboration diagram for Gaudi::TestSuite::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 70 of file MakeAndConsume.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 76 of file MakeAndConsume.cpp.

76 {
77 always() << "CountingConsumer: incrementing \"This is not an error\" twice" << endmsg;
78 ++m_err;
79 m_err += true;
80 m_err += false; // should do nothing...
81 always() << "CountingConsumer: incrementing \"This is not a warning\" twice" << endmsg;
82 ++m_warn;
83 m_warn += true;
84 m_warn += false; // should do nothing...
85 always() << "CountingConsumer: incrementing \"This is not info\" twice" << endmsg;
86 ++m_info;
87 m_info += true;
88 m_info += false; // should do nothing...
89 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
Gaudi::Accumulators::MsgCounter< MSG::INFO > m_info
Gaudi::Accumulators::MsgCounter< MSG::ERROR > m_err
Gaudi::Accumulators::MsgCounter< MSG::WARNING > m_warn

Member Data Documentation

◆ m_err

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

Definition at line 72 of file MakeAndConsume.cpp.

72{ this, "This is not an error...", 3 };

◆ m_info

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

Definition at line 74 of file MakeAndConsume.cpp.

74{ this, "This is not info...", 1 };

◆ m_warn

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

Definition at line 73 of file MakeAndConsume.cpp.

73{ this, "This is not a warning...", 2 };

The documentation for this struct was generated from the following file: