//#ifdef MM_WIN32

#include <iostream>
#include <fstream>

class Std_interception
{
    //static Std_interception std_interception; 

    std::streambuf *out_buf_;
    std::streambuf *err_buf_;
    std::streambuf *log_buf_;
    
    Std_interception()
    {
        /*std::ofstream out ("_cout.txt");
        std::ofstream err ("_cerr.txt");
        std::ofstream log ("_clog.txt");

        out_buf_ = std::cout.rdbuf();
        err_buf_ = std::cerr.rdbuf();
        log_buf_ = std::clog.rdbuf();

        std::cout.rdbuf (out_buf_);
        std::cerr.rdbuf (err_buf_);
        std::clog.rdbuf (log_buf_); //*/
    }

public:

    ~Std_interception()
    {
        /*std::cout.rdbuf (out_buf_);
        std::cerr.rdbuf (err_buf_);
        std::clog.rdbuf (log_buf_); //*/
    }

/*    static void execute()
    {
        Std_interception singleton;
    }//*/
};

//Std_interception Std_interception::std_interception;


//#endif
