reporting::reportWrapper Class Reference

Internal class used by reporting::reportManager
This class serves as a proxy for message reporting.
It will only output to std::cout if reporting::reportWrapper::CanReport it's true. More...

#include <reportsystem.h>

Public Member Functions

 reportWrapper (bool CanReport)
 Constructor. More...
 
template<typename T >
reportWrapperoperator<< (const T &a)
 Overloaded operator that allows to use this object as it was an iostream, as cout. More...
 
reportWrapperoperator<< (std::ostream &(*pf)(std::ostream &))
 Overloaded operator that allows to use this object as it was an iostream, as cout. More...
 

Private Attributes

bool CanReport
 Variable that specifies if the object is able to output to cout or not. More...
 

Detailed Description

Internal class used by reporting::reportManager
This class serves as a proxy for message reporting.
It will only output to std::cout if reporting::reportWrapper::CanReport it's true.

Definition at line 315 of file reportsystem.h.

Constructor & Destructor Documentation

◆ reportWrapper()

reporting::reportWrapper::reportWrapper ( bool  CanReport)
inlineexplicit

Constructor.

Definition at line 322 of file reportsystem.h.

References CanReport.

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
reportWrapper& reporting::reportWrapper::operator<< ( const T &  a)
inline

Overloaded operator that allows to use this object as it was an iostream, as cout.

Definition at line 327 of file reportsystem.h.

References CanReport.

◆ operator<<() [2/2]

reportWrapper& reporting::reportWrapper::operator<< ( std::ostream &(*)(std::ostream &)  pf)
inline

Overloaded operator that allows to use this object as it was an iostream, as cout.

Definition at line 335 of file reportsystem.h.

References CanReport.

Member Data Documentation

◆ CanReport

bool reporting::reportWrapper::CanReport
private

Variable that specifies if the object is able to output to cout or not.

Definition at line 317 of file reportsystem.h.

Referenced by operator<<(), and reportWrapper().


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