Public Member Functions | Private Attributes | List of all members
OstreamRedirect Class Reference

#include <iostream.h>

Public Member Functions

void enter ()
 
void exit ()
 
 OstreamRedirect (bool do_stdout=true, bool do_stderr=true)
 

Private Attributes

bool do_stderr_
 
bool do_stdout_
 
std::unique_ptr< scoped_estream_redirectredirect_stderr
 
std::unique_ptr< scoped_ostream_redirectredirect_stdout
 

Detailed Description

Definition at line 203 of file iostream.h.

Constructor & Destructor Documentation

◆ OstreamRedirect()

OstreamRedirect::OstreamRedirect ( bool  do_stdout = true,
bool  do_stderr = true 
)
inlineexplicit

Definition at line 210 of file iostream.h.

Member Function Documentation

◆ enter()

void OstreamRedirect::enter ( )
inline

Definition at line 213 of file iostream.h.

◆ exit()

void OstreamRedirect::exit ( )
inline

Definition at line 222 of file iostream.h.

Member Data Documentation

◆ do_stderr_

bool OstreamRedirect::do_stderr_
private

Definition at line 205 of file iostream.h.

◆ do_stdout_

bool OstreamRedirect::do_stdout_
private

Definition at line 204 of file iostream.h.

◆ redirect_stderr

std::unique_ptr<scoped_estream_redirect> OstreamRedirect::redirect_stderr
private

Definition at line 207 of file iostream.h.

◆ redirect_stdout

std::unique_ptr<scoped_ostream_redirect> OstreamRedirect::redirect_stdout
private

Definition at line 206 of file iostream.h.


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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:36