wxDataInputStream& operator>>(float& f);
void BigEndianOrdered(bool be_order) { m_be_order = be_order; }
+
+#if wxUSE_UNICODE
+ void SetConv( const wxMBConv &conv );
+ wxMBConv *GetConv() const { return m_conv; }
+#endif
protected:
wxInputStream *m_input;
void BigEndianOrdered(bool be_order) { m_be_order = be_order; }
+#if wxUSE_UNICODE
+ void SetConv( const wxMBConv &conv );
+ wxMBConv *GetConv() const { return m_conv; }
+#endif
+
protected:
wxOutputStream *m_output;
bool m_be_order;
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.
*/
*/
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.
*/
@see wxDataOutputStream::WriteString()
*/
wxString ReadString();
+
+ /**
+ Sets the text conversion class used for reading strings.
+ */
+ void SetConv( const wxMBConv &conv );
};
#endif // wxUSE_UNICODE
}
+#if wxUSE_UNICODE
+void wxDataInputStream::SetConv( const wxMBConv &conv )
+{
+ delete m_conv;
+ m_conv = conv.Clone();
+}
+#endif
+
#if wxHAS_INT64
wxUint64 wxDataInputStream::Read64()
{
#endif // wxUSE_UNICODE
}
+#if wxUSE_UNICODE
+void wxDataOutputStream::SetConv( const wxMBConv &conv )
+{
+ delete m_conv;
+ m_conv = conv.Clone();
+}
+#endif
+
#if wxHAS_INT64
void wxDataOutputStream::Write64(wxUint64 i)
{