Temporarily redirects stdout and stderr to /dev/null
.
More...
#include <ConsoleOutputSquelcher.h>
Public Member Functions | |
ConsoleOutputSquelcher () | |
Constructor. More... | |
~ConsoleOutputSquelcher () | |
Destructor. More... | |
Private Attributes | |
int | m_backup_stdout_fd |
Backup of stdout file descriptor. More... | |
int | m_backup_stderr_fd {} |
Backup of stderr file descriptor. More... | |
Temporarily redirects stdout and stderr to /dev/null
.
Definition at line 38 of file ConsoleOutputSquelcher.h.
ConsoleOutputSquelcher::ConsoleOutputSquelcher | ( | ) |
Constructor.
Redirects stdout and stderr to platform equivalent of Unix /dev/null
.
Definition at line 43 of file ConsoleOutputSquelcher.cc.
ConsoleOutputSquelcher::~ConsoleOutputSquelcher | ( | ) |
|
private |
Backup of stderr file descriptor.
Definition at line 56 of file ConsoleOutputSquelcher.h.
|
private |
Backup of stdout file descriptor.
Definition at line 53 of file ConsoleOutputSquelcher.h.