#include <File.hpp>
Public Member Functions | |
StdoutRedirect (const String &file="", int argc=0, char *argv[]=nullptr) | |
~StdoutRedirect () | |
StdoutRedirect (const StdoutRedirect &)=delete | |
StdoutRedirect & | operator= (const StdoutRedirect &)=delete |
void | start (const String &file) |
void | stop () |
StdoutRedirect::StdoutRedirect | ( | const String & | file = "" , |
int | argc = 0 , |
||
char * | argv[] = nullptr |
||
) |
StdoutRedirect::~StdoutRedirect | ( | ) |
|
delete |
|
delete |
void StdoutRedirect::start | ( | const String & | file | ) |
Save current stdout handle and redirect std::cout to a file
[in] | file | File path to be written |
void StdoutRedirect::stop | ( | ) |
Restore original stdout