MADNESS 0.10.1
|
RAII class to redirect cout to a file. More...
#include <print.h>
Public Member Functions | |
io_redirect (const long task_number, std::string filename, bool debug=false) | |
~io_redirect () | |
Public Attributes | |
bool | debug = false |
std::ofstream | ofile |
std::streambuf * | stream_buffer_cout |
Static Public Attributes | |
static std::streambuf * | stream_buffer_cout_default = nullptr |
default stream buffer for cout, used to restore cout | |
RAII class to redirect cout to a file.