Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::RedirectedStream Class Reference

#include <catch_output_redirect.h>

Public Member Functions

 RedirectedStream (std::ostream &originalStream, std::ostream &redirectionStream)
 
 ~RedirectedStream ()
 

Detailed Description

Definition at line 19 of file catch_output_redirect.h.

Constructor & Destructor Documentation

◆ RedirectedStream()

Catch::RedirectedStream::RedirectedStream ( std::ostream & originalStream,
std::ostream & redirectionStream )

Definition at line 31 of file catch_output_redirect.cpp.

32 : m_originalStream( originalStream ),
33 m_redirectionStream( redirectionStream ),
34 m_prevBuf( m_originalStream.rdbuf() )
35 {
36 m_originalStream.rdbuf( m_redirectionStream.rdbuf() );
37 }

◆ ~RedirectedStream()

Catch::RedirectedStream::~RedirectedStream ( )

Definition at line 39 of file catch_output_redirect.cpp.

39 {
40 m_originalStream.rdbuf( m_prevBuf );
41 }

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