]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
IsModified() function now works correctly
[wxWidgets.git] / src / common / stream.cpp
index fc7bcc8b9af4eafafc2c5f3af304e8bc6655cfa1..1e5af54b38474316edbb6f4853cf86d2c2b2fb72 100644 (file)
 #pragma implementation "stream.h"
 #endif
 
-#include <wx/object.h>
-#include "stream.h"
-
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_ABSTRACT_CLASS(wxInputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxOutputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS2(wxStream, wxInputStream, wxOutputStream)
-IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+#include <wx/stream.h>
+
+#ifdef __BORLANDC__
+#pragma hdrstop
 #endif
 
 wxInputStream::wxInputStream()
-  : wxObject()
 {
 }
 
@@ -48,7 +45,6 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out)
 }
 
 wxOutputStream::wxOutputStream()
-  : wxObject()
 {
 }
 
@@ -65,9 +61,19 @@ wxOutputStream& wxOutputStream::Write(wxInputStream& stream_in)
 wxFilterInputStream::wxFilterInputStream(wxInputStream& stream)
   : wxInputStream()
 {
-  m_parent_stream = &stream;
+  m_parent_i_stream = &stream;
 }
 
 wxFilterInputStream::~wxFilterInputStream()
 {
 }
+
+wxFilterOutputStream::wxFilterOutputStream(wxOutputStream& stream)
+  : wxOutputStream()
+{
+  m_parent_o_stream = &stream;
+}
+
+wxFilterOutputStream::~wxFilterOutputStream()
+{
+}