0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::ConsoleOutputSquelcher Class Reference

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...
 

Detailed Description

Temporarily redirects stdout and stderr to /dev/null.

Definition at line 38 of file ConsoleOutputSquelcher.h.

Constructor & Destructor Documentation

ConsoleOutputSquelcher::ConsoleOutputSquelcher ( )

Constructor.

Redirects stdout and stderr to platform equivalent of Unix /dev/null.

Definition at line 43 of file ConsoleOutputSquelcher.cc.

ConsoleOutputSquelcher::~ConsoleOutputSquelcher ( )

Destructor.

Restores stdout and stderr.

Definition at line 64 of file ConsoleOutputSquelcher.cc.

Member Data Documentation

int Hypertable::ConsoleOutputSquelcher::m_backup_stderr_fd {}
private

Backup of stderr file descriptor.

Definition at line 56 of file ConsoleOutputSquelcher.h.

int Hypertable::ConsoleOutputSquelcher::m_backup_stdout_fd
private

Backup of stdout file descriptor.

Definition at line 53 of file ConsoleOutputSquelcher.h.


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