libMesh
|
This class uses RAII to control redirecting the libMesh::err stream to NULL and restoring it around some operation where we do not want to see output to the screen. More...
#include <stream_redirector.h>
Public Member Functions | |
StreamRedirector () | |
Constructor; saves the original libMesh::err streambuf. More... | |
~StreamRedirector () | |
Destructor: restores the stream. More... | |
Private Attributes | |
std::streambuf * | _errbuf |
This class uses RAII to control redirecting the libMesh::err stream to NULL and restoring it around some operation where we do not want to see output to the screen.
Definition at line 8 of file stream_redirector.h.
|
inline |
Constructor; saves the original libMesh::err streambuf.
Definition at line 15 of file stream_redirector.h.
References libMesh::err, and libMesh::BasicOStreamProxy< charT, traits >::rdbuf().
|
inline |
Destructor: restores the stream.
Definition at line 24 of file stream_redirector.h.
References _errbuf, libMesh::err, and libMesh::BasicOStreamProxy< charT, traits >::rdbuf().
|
private |
Definition at line 30 of file stream_redirector.h.
Referenced by ~StreamRedirector().