19 #ifndef KompexSQLiteCerrRedirection_H
20 #define KompexSQLiteCerrRedirection_H
35 pOutputFile =
new std::ofstream();
63 pOutputFile->open(filename.c_str(), std::ios_base::out);
64 std::streambuf *errbuf = pOutputFile->rdbuf();
65 mBuffer = std::cerr.rdbuf();
66 std::cerr.rdbuf(errbuf);
71 std::cerr.rdbuf(mBuffer);
88 pOutputFile->open(filename.c_str(), std::ios_base::out);
89 std::streambuf *buf = pOutputFile->rdbuf();
90 mBuffer = std::cout.rdbuf();
96 std::cerr.rdbuf(mBuffer);
108 #endif // KompexSQLiteCerrRedirection_H