classes/CRedirect.cpp
void CRedirect::change(const std::string &outfileName, std::ios_base::openmode mode)
    {
        m_newFileStream = std::make_unique<std::ofstream>(outfileName, mode);
        m_outputBuffer = m_savedStream->rdbuf();
        m_savedStream->rdbuf((m_newFileStream)->rdbuf());
    }
//
// Change output for stream to file
//

Change output for stream to file
Change output for stream to file
void CRedirect::change(const std::string &outfileName, std::ios_base::openmode mode)
    {
        m_newFileStream = std::make_unique<std::ofstream>(outfileName, mode);
        m_outputBuffer = m_savedStream->rdbuf();
        m_savedStream->rdbuf((m_newFileStream)->rdbuf());
    }
void CRedirect :: change ( const std :: string & outfileName , std :: ios_base :: openmode mode ) { m_newFileStream = std :: make_unique < std :: ofstream > ( outfileName , mode ) ; m_outputBuffer = m_savedStream -> rdbuf ( ) ; m_savedStream -> rdbuf ( ( m_newFileStream ) -> rdbuf ( ) ) ; }
Change output for stream to file
Change output for stream to file