X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b91c4601f2cc8fab375dc49a0a1222d58065cfdb..d58526d55433162cef8ad2ed7f422689862c3019:/interface/wx/datstrm.h diff --git a/interface/wx/datstrm.h b/interface/wx/datstrm.h index 32c83fc864..8c7c72cdc6 100644 --- a/interface/wx/datstrm.h +++ b/interface/wx/datstrm.h @@ -28,18 +28,10 @@ class wxDataOutputStream { public: /** - Constructs a datastream object from an output stream. Only write - methods will be available. + Constructs a datastream object from an output stream. + Only write methods will be available. - @param stream - The output stream. - */ - wxDataOutputStream(wxOutputStream& s, - const wxMBConv& conv = wxConvAuto(wxFONTENCODING_DEFAULT)); - /** - Constructs a datastream object from an output stream. Only write - methods will be available. This constructor is only available in - Unicode builds of wxWidgets. + Note that the @a conv parameter is only available in Unicode builds of wxWidgets. @param stream The output stream. @@ -51,7 +43,7 @@ public: instance! It is recommended to use the default value (UTF-8). */ wxDataOutputStream(wxOutputStream& stream, - const wxMBConv& conv = wxConvAuto()); + const wxMBConv& conv = wxConvUTF8); /** Destroys the wxDataOutputStream object. @@ -65,7 +57,18 @@ public: order. */ void BigEndianOrdered(bool be_order); + + /** + Returns the current text conversion class used for + writing strings. + */ + wxMBConv *GetConv() const; + /** + Sets the text conversion class used for writing strings. + */ + void SetConv( const wxMBConv &conv ); + /** Writes the single byte @a i8 to the stream. */ @@ -173,18 +176,10 @@ class wxDataInputStream { public: /** - Constructs a datastream object from an input stream. Only read methods - will be available. + Constructs a datastream object from an input stream. + Only read methods will be available. - @param stream - The input stream. - */ - wxDataInputStream(wxInputStream& s, - const wxMBConv& conv = wxConvAuto(wxFONTENCODING_DEFAULT)); - /** - Constructs a datastream object from an input stream. Only read methods - will be available. This constructor is only available in Unicode builds - of wxWidgets. + Note that the @a conv parameter is only available in Unicode builds of wxWidgets. @param stream The input stream. @@ -195,7 +190,7 @@ public: instance! */ wxDataInputStream(wxInputStream& stream, - const wxMBConv& conv = wxConvAuto()); + const wxMBConv& conv = wxConvUTF8 ); /** Destroys the wxDataInputStream object. @@ -209,6 +204,13 @@ public: */ void BigEndianOrdered(bool be_order); + + /** + Returns the current text conversion class used for + reading strings. + */ + wxMBConv *GetConv() const; + /** Reads a single byte from the stream. */ @@ -276,5 +278,10 @@ public: @see wxDataOutputStream::WriteString() */ wxString ReadString(); + + /** + Sets the text conversion class used for reading strings. + */ + void SetConv( const wxMBConv &conv ); };