X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/txtstrm.h?ds=inline diff --git a/interface/wx/txtstrm.h b/interface/wx/txtstrm.h index 89dd37741a..2292373398 100644 --- a/interface/wx/txtstrm.h +++ b/interface/wx/txtstrm.h @@ -2,15 +2,13 @@ // Name: txtstrm.h // Purpose: interface of wxTextInputStream // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxTextInputStream - @wxheader{txtstrm.h} This class provides functions that reads text data using an input stream, allowing you to read text, floats, and integers. @@ -66,8 +64,7 @@ public: In Unicode build only: The encoding converter used to convert the bytes in the underlying input stream to characters. */ - wxTextInputStream(wxInputStream& stream, - const wxString& sep = " \t", + wxTextInputStream(wxInputStream& stream, const wxString& sep = " \t", const wxMBConv& conv = wxConvAuto()); /** @@ -75,6 +72,13 @@ public: */ ~wxTextInputStream(); + /** + Returns a pointer to the underlying input stream object. + + @since 2.9.2 + */ + const wxInputStream& GetInputStream() const; + /** Reads a character, returns 0 if there are no more characters in the stream. @@ -194,7 +198,6 @@ typedef enum /** @class wxTextOutputStream - @wxheader{txtstrm.h} This class provides functions that write text data using an output stream, allowing you to write text, floats, and integers. @@ -242,7 +245,7 @@ public: Also calls Flush(). */ - ~wxTextOutputStream(); + virtual ~wxTextOutputStream(); /** Flushes the stream. @@ -255,6 +258,13 @@ public: */ void Flush(); + /** + Returns a pointer to the underlying output stream object. + + @since 2.9.2 + */ + const wxOutputStream& GetOutputStream() const; + /** Returns the end-of-line mode. One of ::wxEOL_DOS, ::wxEOL_MAC and ::wxEOL_UNIX. @@ -264,7 +274,7 @@ public: /** Writes a character to the stream. */ - void PutChar(wxChar c); + wxTextOutputStream& PutChar(wxChar c); /** Set the end-of-line mode. One of ::wxEOL_NATIVE, ::wxEOL_DOS,