OGS
|
Optionally flushes the standard output upon creation and destruction. Can be used to improve the debug output readability when printing debug messages both from OGS and from Python.
Definition at line 18 of file FlushStdoutGuard.h.
#include <FlushStdoutGuard.h>
Public Member Functions | |
FlushStdoutGuard (bool const flush) | |
Optionally flushes C++ stdout before running Python code. | |
~FlushStdoutGuard () | |
Optionally flushes Python's stdout after running Python code. | |
Private Attributes | |
const bool | _flush |
To flush or not to flush. | |
|
inlineexplicit |
Optionally flushes C++ stdout before running Python code.
Definition at line 22 of file FlushStdoutGuard.h.
|
inline |
Optionally flushes Python's stdout after running Python code.
Definition at line 33 of file FlushStdoutGuard.h.
|
private |
To flush or not to flush.
Definition at line 46 of file FlushStdoutGuard.h.