![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <PythonStdErrOutRedirect.h>
Public Member Functions | |
| PyStdErrOutStreamRedirect () | |
| PyStdErrOutStreamRedirect (py::object stdout_obj, py::object stderr_obj) | |
| ~PyStdErrOutStreamRedirect () noexcept | |
This class redirects python's stdout and stderr to output of your choice.
Definition at line 28 of file PythonStdErrOutRedirect.h.
|
inline |
Default constructor
Will redirect stdout & stderr to be written in ACloudViewer's own console
Definition at line 39 of file PythonStdErrOutRedirect.h.
|
inline |
Creates a stream redirection
stdout_obj & stderr_obj must have a 'file-object' interface and provide at least a write(string_message) and flush() methods.
| stdout_obj | python object to redirect stdout to |
| stderr_obj | python object to redirect stderr to |
Definition at line 59 of file PythonStdErrOutRedirect.h.
|
inlinenoexcept |
Definition at line 70 of file PythonStdErrOutRedirect.h.