#include <PythonStdErrOutRedirect.h>
This class redirects python's stdout and stderr to output of your choice.
Example
◆ PyStdErrOutStreamRedirect() [1/2]
| PyStdErrOutStreamRedirect::PyStdErrOutStreamRedirect |
( |
| ) |
|
|
inline |
Default constructor
Will redirect stdout & stderr to be written in ACloudViewer's own console
◆ PyStdErrOutStreamRedirect() [2/2]
| PyStdErrOutStreamRedirect::PyStdErrOutStreamRedirect |
( |
py::object |
stdout_obj, |
|
|
py::object |
stderr_obj |
|
) |
| |
|
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.
- Parameters
-
| stdout_obj | python object to redirect stdout to |
| stderr_obj | python object to redirect stderr to |
◆ ~PyStdErrOutStreamRedirect()
| PyStdErrOutStreamRedirect::~PyStdErrOutStreamRedirect |
( |
| ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: