The Original CHomP Software
Public Member Functions | Public Attributes | List of all members
chomp::homology::outputstream::mute Struct Reference

Local mute of the stream. More...

#include <textfile.h>

Public Member Functions

 mute (outputstream &_stream)
 
 ~mute ()
 

Public Attributes

outputstreamstream
 
bool show
 
bool log
 

Detailed Description

Local mute of the stream.

This class defines an object which makes the stream mute by suppressing output to both the screen and the log file and restores its setting when the object is destroyed.

Definition at line 115 of file textfile.h.

Constructor & Destructor Documentation

◆ mute()

chomp::homology::outputstream::mute::mute ( outputstream _stream)
inline

Definition at line 117 of file textfile.h.

117 : stream (_stream),
118 show (_stream. show), log (_stream. log)
119 {stream. show = false; stream. log = false; return;}

References log, show, and stream.

◆ ~mute()

chomp::homology::outputstream::mute::~mute ( )
inline

Definition at line 120 of file textfile.h.

120 {stream. show = show;
121 stream. log = log; return;}

References log, show, and stream.

Member Data Documentation

◆ log

bool chomp::homology::outputstream::mute::log

Definition at line 124 of file textfile.h.

Referenced by mute(), and ~mute().

◆ show

bool chomp::homology::outputstream::mute::show

Definition at line 123 of file textfile.h.

Referenced by mute(), and ~mute().

◆ stream

outputstream& chomp::homology::outputstream::mute::stream

Definition at line 122 of file textfile.h.

Referenced by mute(), and ~mute().


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