| 6443 | |
| 6444 | public: |
| 6445 | StreamRedirect( std::ostream& stream, std::string& targetString ) |
| 6446 | : m_stream( stream ), |
| 6447 | m_prevBuf( stream.rdbuf() ), |
| 6448 | m_targetString( targetString ) |
| 6449 | { |
| 6450 | stream.rdbuf( m_oss.rdbuf() ); |
| 6451 | } |
| 6452 | |
| 6453 | ~StreamRedirect() { |
| 6454 | m_targetString += m_oss.str(); |
nothing calls this directly
no outgoing calls
no test coverage detected