MADNESS 0.10.1
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
madness::io_redirect Struct Reference

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
 

Detailed Description

RAII class to redirect cout to a file.


The documentation for this struct was generated from the following files: