Basic Image AlgorithmS Library
2.8.0
|
used to redirect stdout and stderr into files or to silence them More...
#include <Base/Debug/RedirectStreams.hh>
Public Member Functions | |
void | Cerr2Null () |
call this to silence cerr More... | |
void | Cout2Null () |
call this to silence cout More... | |
RedirectStreams & | operator= (const RedirectStreams &src) |
This file defines programs for BIAS to disable some warning on WIN32 /W4 pedantic compilation mode. More... | |
void | RedirectCerr (const char *file) |
direct all stderr output into a file More... | |
void | RedirectCerr (const std::string &file) |
void | RedirectCout (const char *file) |
This file defines compiler pragmas for BIAS to disable some warning on WIN32 /W4 pedantic compilation mode. More... | |
void | RedirectCout (const std::string &file) |
RedirectStreams () | |
empty useless constructor, does nothing More... | |
RedirectStreams (const RedirectStreams &src) | |
void | ResetCerr () |
re-enables backupped standard output for cerr More... | |
void | ResetCout () |
re-enables backupped standard output for cout More... | |
virtual | ~RedirectStreams () |
Protected Attributes | |
std::streambuf * | ErrBuf_ |
std::ofstream | ErrStr_ |
std::streambuf * | OutBuf_ |
std::ofstream | OutStr_ |
std::streambuf * | RedirErr_ |
std::streambuf * | RedirOut_ |
used to redirect stdout and stderr into files or to silence them
Definition at line 38 of file RedirectStreams.hh.
|
inlinevirtual |
Definition at line 41 of file RedirectStreams.hh.
|
inline |
empty useless constructor, does nothing
Definition at line 44 of file RedirectStreams.hh.
|
inline |
Definition at line 47 of file RedirectStreams.hh.
|
inline |
call this to silence cerr
Definition at line 81 of file RedirectStreams.hh.
References RedirectCerr().
|
inline |
call this to silence cout
Definition at line 76 of file RedirectStreams.hh.
References RedirectCout().
|
inline |
This file defines programs for BIAS to disable some warning on WIN32 /W4 pedantic compilation mode.
You MUST use the Start/End files only in pairs ! Use it like this in .cpp file:
#include <BIASpragmaStart.hh> ... code ... #include <BIASpragmaStop.hh>
Definition at line 54 of file RedirectStreams.hh.
|
inline |
direct all stderr output into a file
Definition at line 108 of file RedirectStreams.hh.
References ErrBuf_, ErrStr_, and RedirErr_.
Referenced by Cerr2Null(), and RedirectCerr().
|
inline |
Definition at line 70 of file RedirectStreams.hh.
References RedirectCerr().
|
inline |
This file defines compiler pragmas for BIAS to disable some warning on WIN32 /W4 pedantic compilation mode.
You MUST use the Start/End files only in pairs ! Use it like this in .cpp file:
#include <BIASpragmaStart.hh> ... code ... #include <BIASpragmaStop.hh>
Definition at line 100 of file RedirectStreams.hh.
References OutBuf_, OutStr_, and RedirOut_.
Referenced by Cout2Null(), and RedirectCout().
|
inline |
Definition at line 67 of file RedirectStreams.hh.
References RedirectCout().
|
inline |
re-enables backupped standard output for cerr
Definition at line 122 of file RedirectStreams.hh.
|
inline |
re-enables backupped standard output for cout
Definition at line 116 of file RedirectStreams.hh.
|
protected |
Definition at line 93 of file RedirectStreams.hh.
Referenced by RedirectCerr(), and ResetCerr().
|
protected |
Definition at line 96 of file RedirectStreams.hh.
Referenced by RedirectCerr(), and ResetCerr().
|
protected |
Definition at line 93 of file RedirectStreams.hh.
Referenced by RedirectCout(), and ResetCout().
|
protected |
Definition at line 96 of file RedirectStreams.hh.
Referenced by RedirectCout(), and ResetCout().
|
protected |
Definition at line 93 of file RedirectStreams.hh.
Referenced by RedirectCerr().
|
protected |
Definition at line 93 of file RedirectStreams.hh.
Referenced by RedirectCout().