]> git.saurik.com Git - wxWidgets.git/commitdiff
wxStream: wxInputStream and wxOutputStream don't inherit from wxObject anymore.
authorGuilhem Lavaux <lavaux@easynet.fr>
Wed, 15 Jul 1998 18:40:37 +0000 (18:40 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Wed, 15 Jul 1998 18:40:37 +0000 (18:40 +0000)
          Removed DECLARE* and IMPLEMENT*
filefn.h: added #include "wx/list.h" to define wxStringList

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 files changed:
include/wx/datstrm.h
include/wx/filefn.h
include/wx/fstream.h
include/wx/mstream.h
include/wx/stream.h
include/wx/zstream.h
src/common/fstream.cpp
src/common/mstream.cpp
src/common/stream.cpp
src/common/zstream.cpp
src/gtk/data.cpp
src/gtk1/data.cpp
src/msw/data.cpp

index d329626d124763591fab22c9aa05fb6b4f5ee98c..8d5b759dcdd150a136c252f0162a92cada8bee31 100644 (file)
@@ -19,7 +19,6 @@
 #include <wx/stream.h>
 
 class wxDataInputStream: public wxFilterInputStream {
-  DECLARE_CLASS(wxDataInputStream)
 public:
   wxDataInputStream(wxInputStream& s);
   virtual ~wxDataInputStream();
@@ -33,7 +32,6 @@ public:
 };
 
 class wxDataOutputStream: public wxFilterOutputStream {
-  DECLARE_CLASS(wxDataOutputStream)
  public:
   wxDataOutputStream(wxOutputStream& s);
   virtual ~wxDataOutputStream();
index 720beb4bf28f1cf48103cdfcd07cc6d477d69e76..8de99567f5282d9916bc89bb558082e79deec81a 100644 (file)
@@ -16,6 +16,8 @@
 #pragma interface "filefn.h"
 #endif
 
+#include <wx/list.h>
+
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
index 384a614bc4c9402715d73f26d67d060e1c36872a..bfa6ca698e7f4dbe210bdf165ddb4da02086555d 100644 (file)
@@ -17,7 +17,6 @@
 #include <wx/file.h>
 
 class wxFileInputStream: virtual public wxFile, public wxInputStream {
-  DECLARE_CLASS(wxFileInputStream)
  public:
   wxFileInputStream(const wxString& fileName);
   virtual ~wxFileInputStream();
@@ -41,7 +40,6 @@ class wxFileInputStream: virtual public wxFile, public wxInputStream {
 };
 
 class wxFileOutputStream: virtual wxFile, public wxOutputStream {
-  DECLARE_CLASS(wxFileOutputStream)
  public:
   wxFileOutputStream(const wxString& fileName);
   virtual ~wxFileOutputStream();
@@ -66,7 +64,6 @@ class wxFileOutputStream: virtual wxFile, public wxOutputStream {
 };
 
 class wxFileStream: public wxFileInputStream, public wxFileOutputStream {
-  DECLARE_CLASS(wxFileStream)
  public:
   wxFileStream(const wxString& fileName);
   virtual ~wxFileStream();
index 641c0d42447fd967e1e12fe0aa3667d3fbb1497d..b239c36e67279a13d9a2c1371d91e1f205813feb 100644 (file)
@@ -28,7 +28,6 @@ class wxMemoryStreamBase {
 };
 
 class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStream {
-  DECLARE_CLASS(wxMemoryInputStream)
  public:
   wxMemoryInputStream(const char *data, size_t length);
   virtual ~wxMemoryInputStream();
@@ -47,7 +46,6 @@ class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStre
 };
 
 class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputStream {
-  DECLARE_CLASS(wxMemoryOutputStream)
  public:
   wxMemoryOutputStream(char *data = NULL, size_t length = 0);
   virtual ~wxMemoryOutputStream();
@@ -69,7 +67,6 @@ class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputSt
 };
 
 class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
-  DECLARE_CLASS(wxMemoryStream)
  public:
   wxMemoryStream(char *data = NULL, size_t length = 0);
   virtual ~wxMemoryStream();
index d22e9c0f9e83a8d778072d4fb33c38758e5c0bee..c56b8c6171763966f0d444c18d1f4c048af15cc6 100644 (file)
@@ -25,8 +25,7 @@
  * wxStream: base classes
  */
 class wxOutputStream;
-class wxInputStream: virtual public wxObject {
-  DECLARE_ABSTRACT_CLASS(wxInputStream)
+class wxInputStream {
  public:
   wxInputStream();
   virtual ~wxInputStream();
@@ -43,8 +42,7 @@ class wxInputStream: virtual public wxObject {
   wxInputStream& operator>>(wxOutputStream& out) { return Read(out); }
 };
 
-class wxOutputStream: virtual public wxObject {
-  DECLARE_ABSTRACT_CLASS(wxOutputStream)
+class wxOutputStream {
  public:
   wxOutputStream();
   virtual ~wxOutputStream();
@@ -66,7 +64,6 @@ class wxOutputStream: virtual public wxObject {
  */
 
 class wxFilterInputStream: public wxInputStream {
-  DECLARE_CLASS(wxFilterInputStream)
  public:
   wxFilterInputStream(wxInputStream& stream);
   virtual ~wxFilterInputStream();
@@ -86,7 +83,6 @@ class wxFilterInputStream: public wxInputStream {
 };
 
 class wxFilterOutputStream: public wxOutputStream {
-  DECLARE_CLASS(wxFilterOutputStream)
  public:
   wxFilterOutputStream(wxOutputStream& stream);
   virtual ~wxFilterOutputStream();
index 34bb20f6728f908bb532262efc0a0c2d33ba67d1..9fec85d2a9bccbb57f2f49b828807aaddc70d339 100644 (file)
@@ -19,7 +19,6 @@
 #include "zlib.h"
 
 class wxZlibInputStream: public wxFilterInputStream {
-  DECLARE_CLASS(wxZlibInputStream)
  public:
   wxZlibInputStream(wxInputStream& stream);
   virtual ~wxZlibInputStream();
@@ -40,7 +39,6 @@ class wxZlibInputStream: public wxFilterInputStream {
 };
 
 class wxZlibOutputStream: public wxFilterOutputStream {
-  DECLARE_CLASS(wxZlibOutputStream)
  public:
   wxZlibOutputStream(wxOutputStream& stream);
   virtual ~wxZlibOutputStream();
index ea50fee90a8f6f1915c4e4525c3ab8dea8f66b3f..d1bfb0637bc0d4020de5e7ba0b73189491e59ca3 100644 (file)
 #pragma hdrstop
 #endif
 
-
 #define BUF_TEMP_SIZE 10000
 
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_CLASS(wxFileInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFileOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxFileStream, wxInputStream, wxOutputStream)
-#endif
-
 // ----------------------------------------------------------------------------
 // wxFileInputStream
 // ----------------------------------------------------------------------------
index d19b9755df77d996cd1c7d7dca0f632927b8d2e0..d75c423885488611d96b110427b79f05df7436ae 100644 (file)
 #pragma hdrstop
 #endif
 
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxMemoryStream, wxInputStream, wxOutputStream)
-#endif
-
 // ----------------------------------------------------------------------------
 // wxMemoryStreamBase
 // ----------------------------------------------------------------------------
index a9c76aff5bb3a2bcb0cb6d758e4087c7c67f511d..1e5af54b38474316edbb6f4853cf86d2c2b2fb72 100644 (file)
 #pragma hdrstop
 #endif
 
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_ABSTRACT_CLASS(wxInputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxOutputStream, wxObject)
-IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
-#endif
-
 wxInputStream::wxInputStream()
-  : wxObject()
 {
 }
 
@@ -53,7 +45,6 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out)
 }
 
 wxOutputStream::wxOutputStream()
-  : wxObject()
 {
 }
 
index de38cad39c295f4b418c447d19a0a17fc0a63dd2..8ff3bf5c60331c80bff16cc5bde9c8ef9fd645c9 100644 (file)
 #pragma hdrstop
 #endif
 
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream)
-#endif
-
 //////////////////////
 // wxZlibInputStream
 //////////////////////
index 1431dd4dc0c1293fa0cfc13f3bc821ca4fcd85db..42facd4ae83e0c4ba483c11da8e44d9df103e288 100644 (file)
@@ -345,30 +345,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
 #include "wx/process.h"
 IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
 
-#include "wx/stream.h"
-#include "wx/fstream.h"
-#include "wx/mstream.h"
-#include "wx/zstream.h"
-#include "wx/datstrm.h"
-IMPLEMENT_ABSTRACT_CLASS(wxInputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxOutputStream, wxObject)
-IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
-
-IMPLEMENT_CLASS(wxFileInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFileOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxFileStream, wxFileInputStream, wxFileOutputStream)
-
-IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxMemoryStream, wxMemoryInputStream, wxMemoryOutputStream)
-
-IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream)
-
-IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
-
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
index 1431dd4dc0c1293fa0cfc13f3bc821ca4fcd85db..42facd4ae83e0c4ba483c11da8e44d9df103e288 100644 (file)
@@ -345,30 +345,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
 #include "wx/process.h"
 IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
 
-#include "wx/stream.h"
-#include "wx/fstream.h"
-#include "wx/mstream.h"
-#include "wx/zstream.h"
-#include "wx/datstrm.h"
-IMPLEMENT_ABSTRACT_CLASS(wxInputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxOutputStream, wxObject)
-IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
-
-IMPLEMENT_CLASS(wxFileInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFileOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxFileStream, wxFileInputStream, wxFileOutputStream)
-
-IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxMemoryStream, wxMemoryInputStream, wxMemoryOutputStream)
-
-IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream)
-
-IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
-
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
index 55e92191a33d119a5e44498c46ab00c48939045d..a692201c45a2348476636ef3ef1ce9291af664d3 100644 (file)
@@ -359,29 +359,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
 #include "wx/process.h"
 IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
 
-#include "wx/stream.h"
-#include "wx/fstream.h"
-#include "wx/mstream.h"
-#include "wx/datstrm.h"
-IMPLEMENT_ABSTRACT_CLASS(wxInputStream, wxObject)
-IMPLEMENT_ABSTRACT_CLASS(wxOutputStream, wxObject)
-IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
-
-IMPLEMENT_CLASS(wxFileInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxFileOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxFileStream, wxFileInputStream, wxFileOutputStream)
-
-IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxMemoryStream, wxMemoryInputStream, wxMemoryOutputStream)
-
-IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream)
-
-IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
-
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)