]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mstream.h
*** empty log message ***
[wxWidgets.git] / include / wx / mstream.h
index c25fc94a85dcdca9977ef144f769355272271cd0..1c3283e77934d96901c85928b3d5a65e10cf6f9f 100644 (file)
 
 #include <wx/stream.h>
 
+#if wxUSE_STREAMS
+
 class wxMemoryInputStream: public wxInputStream {
+ private:
+  size_t m_length;
+  
  public:
   wxMemoryInputStream(const char *data, size_t length);
   virtual ~wxMemoryInputStream();
+  virtual size_t StreamSize() const { return m_length; }
 
   char Peek();
 };
@@ -27,10 +33,8 @@ class wxMemoryOutputStream:  public wxOutputStream {
   virtual ~wxMemoryOutputStream();
 };
 
-class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
- public:
-  wxMemoryStream(char *data = NULL, size_t length = 0);
-  virtual ~wxMemoryStream();
-};
+#endif
+  // wxUSE_STREAMS
 
 #endif
+  // _WX_WXMMSTREAM_H__
\ No newline at end of file