]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datstrm.cpp
changed wxMatchWild() 3rd parameter not used under Unix - what is it good for?
[wxWidgets.git] / src / common / datstrm.cpp
index a4cecc093b27b4651bf368023cfd8ef405f9cc00..8056bdadedc5693536d51efcb5bf5d4d23bad2a7 100644 (file)
 #endif
 
 #include "wx/datstrm.h"
-#include "wx/bufstrm.h"
+
+// ---------------------------------------------------------------------------
+// wxDataInputStream
+// ---------------------------------------------------------------------------
 
 wxDataInputStream::wxDataInputStream(wxInputStream& s)
   : wxFilterInputStream(s)
@@ -124,9 +127,13 @@ wxString wxDataInputStream::ReadString()
   wx_string = string;
   delete string;
 
-  return wx_string; 
+  return wx_string;
 }
 
+// ---------------------------------------------------------------------------
+// wxDataOutputStream
+// ---------------------------------------------------------------------------
+
 wxDataOutputStream::wxDataOutputStream(wxOutputStream& s)
  : wxFilterOutputStream(s)
 {
@@ -188,8 +195,17 @@ void wxDataOutputStream::WriteDouble(double d)
 #if USE_APPLE_IEEE
   ConvertToIeeeExtended(d, (unsigned char *)buf);
 #else
-#      pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!"
+#  pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!"
  buf[0] = '\0';
 #endif
   Write(buf, 10);
 }
+
+// ---------------------------------------------------------------------------
+// wxDataStream
+// ---------------------------------------------------------------------------
+
+wxDataStream::wxDataStream(wxStream& stream)
+ : wxDataInputStream(stream), wxDataOutputStream(stream)
+{
+}