]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/datstrm.h
Disabled top-level parent tracking by default (crashes with AUI), must now use wxPG_E...
[wxWidgets.git] / interface / wx / datstrm.h
index 8ff65a4495887a9ed35a14261dd016ad0e521074..8c7c72cdc629aba1517cf4b562b0cc63cf209af8 100644 (file)
@@ -43,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.
@@ -57,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.
     */
@@ -179,7 +190,7 @@ public:
             instance!
     */
     wxDataInputStream(wxInputStream& stream,
-                      const wxMBConv& conv = wxConvAuto());
+                      const wxMBConv& conv = wxConvUTF8 );
 
     /**
         Destroys the wxDataInputStream object.
@@ -193,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.
     */
@@ -260,5 +278,10 @@ public:
         @see wxDataOutputStream::WriteString()
     */
     wxString ReadString();
+
+    /** 
+       Sets the text conversion class used for reading strings.
+    */
+    void SetConv( const wxMBConv &conv );
 };