Gui::OutputStdout Class Reference

Python class for redirection of stdout to FreeCAD's output console window. More...

#include <PythonConsolePy.h>

Inheritance diagram for Gui::OutputStdout:
Py::PythonExtension< OutputStdout > Py::PythonExtensionBase

List of all members.

Public Member Functions

Py::Object flush (const Py::Tuple &)
 OutputStdout ()
Py::Object repr ()
Py::Object write (const Py::Tuple &)
 ~OutputStdout ()

Static Public Member Functions

static void init_type (void)

Detailed Description

Python class for redirection of stdout to FreeCAD's output console window.

This allows to report all Python output to the output window which simplifies debugging scripts.

See also:
PythonStdout
PythonStderr
Author:
Werner Mayer

Definition at line 89 of file PythonConsolePy.h.


Constructor & Destructor Documentation

OutputStdout::OutputStdout (  ) 

Definition at line 174 of file PythonConsolePy.cpp.

OutputStdout::~OutputStdout (  ) 

Definition at line 178 of file PythonConsolePy.cpp.


Member Function Documentation

Py::Object OutputStdout::flush ( const Py::Tuple  ) 

Definition at line 216 of file PythonConsolePy.cpp.

References Sketcher::None.

Referenced by init_type().

void OutputStdout::init_type ( void   )  [static]
Py::Object OutputStdout::repr (  )  [virtual]

Reimplemented from Py::PythonExtensionBase.

Definition at line 182 of file PythonConsolePy.cpp.

Py::Object OutputStdout::write ( const Py::Tuple args  ) 

Definition at line 190 of file PythonConsolePy.cpp.

References Py::Exception::clear(), Base::Console(), Sketcher::None, and Py::Object::ptr().

Referenced by init_type().


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

Generated on Wed Nov 23 19:02:00 2011 for FreeCAD by  doxygen 1.6.1