Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::TLogDiagCounter 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 103 of file TLogger.hxx.

Public Member Functions

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

Private Attributes

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

#include <ROOT/TLogger.hxx>

Member Function Documentation

◆ GetAccumulatedErrors()

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

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

Definition at line 115 of file TLogger.hxx.

◆ GetAccumulatedWarnings()

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

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

Definition at line 112 of file TLogger.hxx.

◆ HasErrorOccurred()

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

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

Definition at line 121 of file TLogger.hxx.

◆ HasErrorOrWarningOccurred()

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

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

Definition at line 124 of file TLogger.hxx.

◆ HasWarningOccurred()

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

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

Definition at line 118 of file TLogger.hxx.

Member Data Documentation

◆ fInitialErrors

long long ROOT::Experimental::TLogDiagCounter::fInitialErrors {TLogManager::Get().GetNumErrors()}
private

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

Definition at line 108 of file TLogger.hxx.

◆ fInitialWarnings

long long ROOT::Experimental::TLogDiagCounter::fInitialWarnings {TLogManager::Get().GetNumWarnings()}
private

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

Definition at line 106 of file TLogger.hxx.


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