Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RLogScopedDiagCount Class Reference

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

RLogDiagCountfCounter = 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>

Constructor & Destructor Documentation

◆ RLogScopedDiagCount() [1/2]

ROOT::Experimental::RLogScopedDiagCount::RLogScopedDiagCount ( RLogDiagCount cnt)
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.

◆ RLogScopedDiagCount() [2/2]

ROOT::Experimental::RLogScopedDiagCount::RLogScopedDiagCount ( )
inline

Construct the scoped count for any diagnostic, whatever its channel.

Definition at line 279 of file RLogger.hxx.

Member Function Documentation

◆ GetAccumulatedErrors()

long long ROOT::Experimental::RLogScopedDiagCount::GetAccumulatedErrors ( ) const
inline

Get the number of errors that the RLogDiagCount has emitted since construction of *this.

Definition at line 285 of file RLogger.hxx.

◆ GetAccumulatedFatalErrors()

long long ROOT::Experimental::RLogScopedDiagCount::GetAccumulatedFatalErrors ( ) const
inline

Get the number of errors that the RLogDiagCount has emitted since construction of *this.

Definition at line 288 of file RLogger.hxx.

◆ GetAccumulatedWarnings()

long long ROOT::Experimental::RLogScopedDiagCount::GetAccumulatedWarnings ( ) const
inline

Get the number of warnings that the RLogDiagCount has emitted since construction of *this.

Definition at line 282 of file RLogger.hxx.

◆ HasErrorOccurred()

bool ROOT::Experimental::RLogScopedDiagCount::HasErrorOccurred ( ) const
inline

Whether the RLogDiagCount has emitted an error (fatal or not) since construction time of *this.

Definition at line 294 of file RLogger.hxx.

◆ HasErrorOrWarningOccurred()

bool ROOT::Experimental::RLogScopedDiagCount::HasErrorOrWarningOccurred ( ) const
inline

Whether the RLogDiagCount has emitted an error or a warning since construction time of *this.

Definition at line 297 of file RLogger.hxx.

◆ HasWarningOccurred()

bool ROOT::Experimental::RLogScopedDiagCount::HasWarningOccurred ( ) const
inline

Whether the RLogDiagCount has emitted a warnings since construction time of *this.

Definition at line 291 of file RLogger.hxx.

Member Data Documentation

◆ fCounter

RLogDiagCount* ROOT::Experimental::RLogScopedDiagCount::fCounter = nullptr
private

Definition at line 261 of file RLogger.hxx.

◆ fInitialErrors

long long ROOT::Experimental::RLogScopedDiagCount::fInitialErrors = 0
private

The number of the RLogDiagCount's emitted errors at construction time.

Definition at line 265 of file RLogger.hxx.

◆ fInitialFatalErrors

long long ROOT::Experimental::RLogScopedDiagCount::fInitialFatalErrors = 0
private

The number of the RLogDiagCount's emitted fatal errors at construction time.

Definition at line 267 of file RLogger.hxx.

◆ fInitialWarnings

long long ROOT::Experimental::RLogScopedDiagCount::fInitialWarnings = 0
private

The number of the RLogDiagCount's emitted warnings at construction time of *this.

Definition at line 263 of file RLogger.hxx.

Libraries for ROOT::Experimental::RLogScopedDiagCount:

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