Logo ROOT  
Reference Guide
ROOT::Experimental::RLogDiagCounter 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 104 of file RLogger.hxx.

Public Member Functions

long long GetAccumulatedErrors () const
 Get the number of errors that the RLogManager has emitted since construction of *this. More...
 
long long GetAccumulatedWarnings () const
 Get the number of warnings that the RLogManager has emitted since construction of *this. More...
 
bool HasErrorOccurred () const
 Whether the RLogManager has emitted an error since construction time of *this. More...
 
bool HasErrorOrWarningOccurred () const
 Whether the RLogManager has emitted an error or a warning since construction time of *this. More...
 
bool HasWarningOccurred () const
 Whether the RLogManager has emitted a warnings since construction time of *this. More...
 

Private Attributes

long long fInitialErrors {RLogManager::Get().GetNumErrors()}
 The number of the RLogManager's emitted errors at construction time. More...
 
long long fInitialWarnings {RLogManager::Get().GetNumWarnings()}
 The number of the RLogManager's emitted warnings at construction time of *this. More...
 

#include <ROOT/RLogger.hxx>

Member Function Documentation

◆ GetAccumulatedErrors()

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

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

Definition at line 116 of file RLogger.hxx.

◆ GetAccumulatedWarnings()

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

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

Definition at line 113 of file RLogger.hxx.

◆ HasErrorOccurred()

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

Whether the RLogManager has emitted an error since construction time of *this.

Definition at line 122 of file RLogger.hxx.

◆ HasErrorOrWarningOccurred()

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

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

Definition at line 125 of file RLogger.hxx.

◆ HasWarningOccurred()

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

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

Definition at line 119 of file RLogger.hxx.

Member Data Documentation

◆ fInitialErrors

long long ROOT::Experimental::RLogDiagCounter::fInitialErrors {RLogManager::Get().GetNumErrors()}
private

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

Definition at line 109 of file RLogger.hxx.

◆ fInitialWarnings

long long ROOT::Experimental::RLogDiagCounter::fInitialWarnings {RLogManager::Get().GetNumWarnings()}
private

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

Definition at line 107 of file RLogger.hxx.


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