1.1.0
CCC
 
StdoutRedirect Class Reference

#include <File.hpp>

Public Member Functions

 StdoutRedirect (const String &file="", int argc=0, char *argv[]=nullptr)
 
 ~StdoutRedirect ()
 
 StdoutRedirect (const StdoutRedirect &)=delete
 
StdoutRedirectoperator= (const StdoutRedirect &)=delete
 
void start (const String &file)
 
void stop ()
 

Constructor & Destructor Documentation

StdoutRedirect::StdoutRedirect ( const String file = "",
int  argc = 0,
char *  argv[] = nullptr 
)
StdoutRedirect::~StdoutRedirect ( )
StdoutRedirect::StdoutRedirect ( const StdoutRedirect )
delete

Member Function Documentation

StdoutRedirect& StdoutRedirect::operator= ( const StdoutRedirect )
delete
void StdoutRedirect::start ( const String file)

Save current stdout handle and redirect std::cout to a file

Parameters
[in]fileFile path to be written
void StdoutRedirect::stop ( )

Restore original stdout


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