Add wxText{Input,Output}Stream::Get{Input,Output}Stream() methods.
These methods simply return the underlying low-level stream. See #10807. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,6 +45,8 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
~wxTextInputStream();
|
~wxTextInputStream();
|
||||||
|
|
||||||
|
const wxInputStream& GetInputStream() const { return m_input; }
|
||||||
|
|
||||||
wxUint32 Read32(int base = 10); // base may be between 2 and 36, inclusive, or the special 0 (= C format)
|
wxUint32 Read32(int base = 10); // base may be between 2 and 36, inclusive, or the special 0 (= C format)
|
||||||
wxUint16 Read16(int base = 10);
|
wxUint16 Read16(int base = 10);
|
||||||
wxUint8 Read8(int base = 10);
|
wxUint8 Read8(int base = 10);
|
||||||
@@ -116,6 +118,8 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
virtual ~wxTextOutputStream();
|
virtual ~wxTextOutputStream();
|
||||||
|
|
||||||
|
const wxOutputStream& GetOutputStream() const { return m_output; }
|
||||||
|
|
||||||
void SetMode( wxEOL mode = wxEOL_NATIVE );
|
void SetMode( wxEOL mode = wxEOL_NATIVE );
|
||||||
wxEOL GetMode() { return m_mode; }
|
wxEOL GetMode() { return m_mode; }
|
||||||
|
|
||||||
|
@@ -73,6 +73,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
~wxTextInputStream();
|
~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
|
Reads a character, returns 0 if there are no more characters in the
|
||||||
stream.
|
stream.
|
||||||
@@ -252,6 +259,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
void Flush();
|
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
|
Returns the end-of-line mode. One of ::wxEOL_DOS, ::wxEOL_MAC and
|
||||||
::wxEOL_UNIX.
|
::wxEOL_UNIX.
|
||||||
|
Reference in New Issue
Block a user