itom
|
static class which implements a new python type. The members cout and cerr of the python system are set to variables of this type PyStream in order to observe the python's cout and cerr stream and to transmit the stream's content to the main application. More...
Classes | |
struct | PythonStream |
Static Public Member Functions | |
static void | PythonStream_dealloc (PythonStream *self) |
static method which is called if variable of type PyStream in python workspace has been deleted in order to free allocated memory. | |
static int | PythonStream_init (PythonStream *self, PyObject *args, PyObject *kwds) |
static init method, which is called if any variable of type PyStream is initialized. This method extracts type value from args. | |
static PyObject * | PythonStream_name (PythonStream *self) |
static method returning name representation of this type | |
static PyObject * | PythonStream_fileno (PythonStream *self) |
static PyObject * | PythonStream_write (PythonStream *self, PyObject *args) |
static method invoked if string has been written to stream | |
static PyObject * | PythonStream_flush (PythonStream *self, PyObject *args) |
static method is invoked if stream has been flushed | |
static PyObject * | PythonStream_readline (PythonStream *self, PyObject *args) |
static PyObject * | PythonStream_isatty (PythonStream *self, PyObject *args) |
setting IOBase params to False since help(bla) will open a terminal if True.idfc. | |
static PyObject * | PythonStream_seekable (PythonStream *self, PyObject *args) |
static PyObject * | PythonStream_writable (PythonStream *self, PyObject *args) |
static PyObject * | PythonStream_readable (PythonStream *self, PyObject *args) |
Static Public Attributes | |
static PyMemberDef | PythonStream_members [] |
static PyMemberDef table which describes every member of PyStream type | |
static PyMethodDef | PythonStream_methods [] |
static table of type PyMethodDef which contains function pointers and descriptions to all methods, belonging to this type | |
static PyTypeObject | PythonStreamType |
static PyTypeObject for type PyStream with function pointers to all required static methods. | |
static class which implements a new python type. The members cout and cerr of the python system are set to variables of this type PyStream in order to observe the python's cout and cerr stream and to transmit the stream's content to the main application.
|
static |
static method is invoked if stream has been flushed
stream is flushed if python is destroyed. Must return Py_None.
|
static |
static method invoked if string has been written to stream
string is contained in args reference and then sent to std::cout or std::cerr-stream, depending on value of member type.
|
static |
static PyMemberDef table which describes every member of PyStream type
|
static |
static table of type PyMethodDef which contains function pointers and descriptions to all methods, belonging to this type