Ginan
Loading...
Searching...
No Matches
TempStreamDisabler Struct Reference

Helper object to temporarily and automatically disable and reenable a stream when the object goes out of scope. More...

Detailed Description

Helper object to temporarily and automatically disable and reenable a stream when the object goes out of scope.

Collaboration diagram for TempStreamDisabler:

Public Member Functions

 TempStreamDisabler (std::ostream &stream)
 
void disable ()
 
 ~TempStreamDisabler ()
 

Data Fields

std::ostream & stream
 
bool disabled = false
 

Constructor & Destructor Documentation

◆ TempStreamDisabler()

TempStreamDisabler::TempStreamDisabler ( std::ostream & stream)
inline

◆ ~TempStreamDisabler()

TempStreamDisabler::~TempStreamDisabler ( )
inline

Member Function Documentation

◆ disable()

void TempStreamDisabler::disable ( )
inline
Here is the caller graph for this function:

Field Documentation

◆ disabled

bool TempStreamDisabler::disabled = false

◆ stream

std::ostream& TempStreamDisabler::stream

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