| 4924 | |
| 4925 | public: |
| 4926 | StreamRedirect( std::ostream& stream, std::string& targetString ) |
| 4927 | : m_stream( stream ), |
| 4928 | m_prevBuf( stream.rdbuf() ), |
| 4929 | m_targetString( targetString ) |
| 4930 | { |
| 4931 | stream.rdbuf( m_oss.rdbuf() ); |
| 4932 | } |
| 4933 | |
| 4934 | ~StreamRedirect() { |
| 4935 | m_targetString += m_oss.str(); |
nothing calls this directly
no outgoing calls
no test coverage detected