Object to count the number of warnings and errors emitted by a section of code, after construction of this type.
Definition at line 260 of file RLogger.hxx.
Public Member Functions | |
RLogScopedDiagCount () | |
Construct the scoped count for any diagnostic, whatever its channel. | |
RLogScopedDiagCount (RLogDiagCount &cnt) | |
Construct the scoped count given a counter (e.g. | |
long long | GetAccumulatedErrors () const |
Get the number of errors that the RLogDiagCount has emitted since construction of *this. | |
long long | GetAccumulatedFatalErrors () const |
Get the number of errors that the RLogDiagCount has emitted since construction of *this. | |
long long | GetAccumulatedWarnings () const |
Get the number of warnings that the RLogDiagCount has emitted since construction of *this. | |
bool | HasErrorOccurred () const |
Whether the RLogDiagCount has emitted an error (fatal or not) since construction time of *this. | |
bool | HasErrorOrWarningOccurred () const |
Whether the RLogDiagCount has emitted an error or a warning since construction time of *this. | |
bool | HasWarningOccurred () const |
Whether the RLogDiagCount has emitted a warnings since construction time of *this. | |
Private Attributes | |
RLogDiagCount * | fCounter = nullptr |
long long | fInitialErrors = 0 |
The number of the RLogDiagCount's emitted errors at construction time. | |
long long | fInitialFatalErrors = 0 |
The number of the RLogDiagCount's emitted fatal errors at construction time. | |
long long | fInitialWarnings = 0 |
The number of the RLogDiagCount's emitted warnings at construction time of *this. | |
#include <ROOT/RLogger.hxx>
|
inlineexplicit |
Construct the scoped count given a counter (e.g.
a channel or RLogManager). The counter's lifetime must exceed the lifetime of this object!
Definition at line 272 of file RLogger.hxx.
|
inline |
Construct the scoped count for any diagnostic, whatever its channel.
Definition at line 279 of file RLogger.hxx.
|
inline |
Get the number of errors that the RLogDiagCount has emitted since construction of *this.
Definition at line 285 of file RLogger.hxx.
|
inline |
Get the number of errors that the RLogDiagCount has emitted since construction of *this.
Definition at line 288 of file RLogger.hxx.
|
inline |
Get the number of warnings that the RLogDiagCount has emitted since construction of *this.
Definition at line 282 of file RLogger.hxx.
|
inline |
Whether the RLogDiagCount has emitted an error (fatal or not) since construction time of *this.
Definition at line 294 of file RLogger.hxx.
|
inline |
Whether the RLogDiagCount has emitted an error or a warning since construction time of *this.
Definition at line 297 of file RLogger.hxx.
|
inline |
Whether the RLogDiagCount has emitted a warnings since construction time of *this.
Definition at line 291 of file RLogger.hxx.
|
private |
Definition at line 261 of file RLogger.hxx.
|
private |
The number of the RLogDiagCount's emitted errors at construction time.
Definition at line 265 of file RLogger.hxx.
|
private |
The number of the RLogDiagCount's emitted fatal errors at construction time.
Definition at line 267 of file RLogger.hxx.
|
private |
The number of the RLogDiagCount's emitted warnings at construction time of *this.
Definition at line 263 of file RLogger.hxx.