classes/CRedirect.cpp
CRedirect::CRedirect(std::FILE *stdStream, const std::string &outfileName, const char *mode)
    {
        FILE *ignore = std::freopen(outfileName.c_str(), mode, stdStream);
        (void)ignore;
    }
//
// Create CRedirect specifying file stream (stdout/stderr), output file and start the redirect
//

Create CRedirect specifying file stream (stdout/stderr), output file and start the redirect
Create CRedirect specifying file stream ( stdout / stderr ) output file and start the redirect
CRedirect::CRedirect(std::FILE *stdStream, const std::string &outfileName, const char *mode)
    {
        FILE *ignore = std::freopen(outfileName.c_str(), mode, stdStream);
        (void)ignore;
    }
CRedirect :: CRedirect ( std :: FILE * stdStream , const std :: string & outfileName , const char * mode ) { FILE * ignore = std :: freopen ( outfileName . c_str ( ) , mode , stdStream ) ; ( void ) ignore ; }
Create CRedirect specifying file stream (stdout/stderr), output file and start the redirect
Create CRedirect specifying file stream ( stdout / stderr ) output file and start the redirect