#include <MessageHelper.h>
Definition at line 16 of file MessageHelper.h.
◆ MessageHelper()
MessageHelper::MessageHelper |
( |
const AthAlgTool & |
parent, |
|
|
unsigned int |
num |
|
) |
| |
|
inline |
Pass to the constructor the number of messages.
Definition at line 41 of file MessageHelper.h.
◆ incrementCount()
void MessageHelper::incrementCount |
( |
unsigned int |
messageNumber | ) |
|
|
inline |
◆ printSummary()
void MessageHelper::printSummary |
( |
void |
| ) |
const |
|
inline |
Definition at line 51 of file MessageHelper.h.
52 bool haveWarnings =
false;
53 for (
unsigned int i = 0;
i < m_warningCounts.size(); ++
i) {
54 if (!m_warningCounts[
i])
62 std::stringstream
out;
63 out <<
" summary of WARNING occurences (maximum shown during job: "
67 for (
unsigned int i = 0;
i < m_warningCounts.size(); ++
i) {
68 if (!m_warningCounts[
i])
◆ printWarning() [1/2]
void MessageHelper::printWarning |
( |
unsigned int |
messageNumber | ) |
const |
|
inline |
Definition at line 76 of file MessageHelper.h.
77 unsigned int count = ++m_warningCounts[messageNumber];
84 <<
"Limit reached. No more messages of this type will be printed."
◆ printWarning() [2/2]
void MessageHelper::printWarning |
( |
unsigned int |
messageNumber, |
|
|
const std::string & |
addition |
|
) |
| const |
|
inline |
Definition at line 88 of file MessageHelper.h.
90 unsigned int count = ++m_warningCounts[messageNumber];
98 <<
"Limit reached. No more messages of this type will be printed."
◆ setMaxNumberOfMessagesPrinted()
void MessageHelper::setMaxNumberOfMessagesPrinted |
( |
unsigned int |
num | ) |
|
|
inline |
◆ setMessage()
void MessageHelper::setMessage |
( |
unsigned int |
messageNumber, |
|
|
const std::string & |
message |
|
) |
| |
|
inline |
Definition at line 106 of file MessageHelper.h.
108 if (messageNumber >= m_warningCounts.size())
110 m_warningCounts[messageNumber] = 0;
◆ wouldPrintWarning()
bool MessageHelper::wouldPrintWarning |
( |
unsigned int |
messageNumber | ) |
const |
|
inline |
◆ ATLAS_THREAD_SAFE
std::vector<std::atomic<unsigned int> > m_warningCounts MessageHelper::ATLAS_THREAD_SAFE |
|
mutableprivate |
The counts per error (the index is the error number)
Definition at line 34 of file MessageHelper.h.
◆ m_maxWarnings
unsigned int MessageHelper::m_maxWarnings |
|
private |
Maximum number of WARNING messages permitted.
Definition at line 32 of file MessageHelper.h.
◆ m_parent
◆ m_warningText
std::vector<std::string> MessageHelper::m_warningText |
|
private |
The text for the WARNINGs (the index is the error number).
Filled in ctor.
Definition at line 37 of file MessageHelper.h.
The documentation for this class was generated from the following file: