X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/293a0a8677c1ea28e42d4a97c3ec9c2a757d1c0c..0e7fa3a63f2e36bc5b89b7cd8fd85ede84cd01ad:/wxPython/src/helpers.h diff --git a/wxPython/src/helpers.h b/wxPython/src/helpers.h index ffab121edf..a39d69429c 100644 --- a/wxPython/src/helpers.h +++ b/wxPython/src/helpers.h @@ -76,44 +76,6 @@ void wxPyEndAllowThreads(PyThreadState* state); void wxPyBeginBlockThreads(); void wxPyEndBlockThreads(); -//---------------------------------------------------------------------- -// Handle wxInputStreams by Joerg Baumann -// See stream.i for implementations - -// list class for return list of strings, e.g. readlines() -WX_DECLARE_LIST(wxString, wxStringPtrList); - - -// C++ class wxPyInputStream to act as base for python class wxInputStream -// Use it in python like a python file object -class wxPyInputStream { -public: - // underlying wxInputStream - wxInputStream* wxi; - -public: - wxPyInputStream(wxInputStream* wxi_) : wxi(wxi_) {} - ~wxPyInputStream(); - - // python file object interface for input files (most of it) - void close(); - void flush(); - bool eof(); - wxString* read(int size=-1); - wxString* readline(int size=-1); - wxStringPtrList* readlines(int sizehint=-1); - void seek(int offset, int whence=0); - int tell(); - /* - bool isatty(); - int fileno(); - void truncate(int size=-1); - void write(wxString data); - void writelines(wxStringPtrList); - */ -}; - - //---------------------------------------------------------------------- // These are helpers used by the typemaps