]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datstrm.h
constraints for notebook pages work (again)
[wxWidgets.git] / include / wx / datstrm.h
index 169c86b6274744852ebe8c6a18ad059a1d07d741..d329626d124763591fab22c9aa05fb6b4f5ee98c 100644 (file)
 #pragma interface "datstrm.h"
 #endif
 
-#include "wx/wx.h"
+#include <wx/stream.h>
 
-class wxDataStream {
+class wxDataInputStream: public wxFilterInputStream {
+  DECLARE_CLASS(wxDataInputStream)
 public:
-  wxDataStream(iostream& s);
-  wxDataStream(istream& s);
-  wxDataStream(ostream& s);
-
-  virtual ~wxDataStream();
+  wxDataInputStream(wxInputStream& s);
+  virtual ~wxDataInputStream();
 
   unsigned long Read32();
   unsigned short Read16();
   unsigned char Read8();
   double ReadDouble();
   wxString ReadLine();
+  wxString ReadString();
+};
+
+class wxDataOutputStream: public wxFilterOutputStream {
+  DECLARE_CLASS(wxDataOutputStream)
+ public:
+  wxDataOutputStream(wxOutputStream& s);
+  virtual ~wxDataOutputStream();
 
   void Write32(unsigned long i);
   void Write16(unsigned short i);
   void Write8(unsigned char i);
   void WriteDouble(double d);
   void WriteLine(const wxString& line);
-protected:
-  istream *m_istream;
-  ostream *m_ostream;
+  void WriteString(const wxString& string);
 };
 
 #endif
-    // __HELPBASEH__
+    // __DATSTREAMH__