wxStream: wxInputStream and wxOutputStream don't inherit from wxObject anymore.
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
This commit is contained in:
		| @@ -19,7 +19,6 @@ | |||||||
| #include <wx/stream.h> | #include <wx/stream.h> | ||||||
|  |  | ||||||
| class wxDataInputStream: public wxFilterInputStream { | class wxDataInputStream: public wxFilterInputStream { | ||||||
|   DECLARE_CLASS(wxDataInputStream) |  | ||||||
| public: | public: | ||||||
|   wxDataInputStream(wxInputStream& s); |   wxDataInputStream(wxInputStream& s); | ||||||
|   virtual ~wxDataInputStream(); |   virtual ~wxDataInputStream(); | ||||||
| @@ -33,7 +32,6 @@ public: | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxDataOutputStream: public wxFilterOutputStream { | class wxDataOutputStream: public wxFilterOutputStream { | ||||||
|   DECLARE_CLASS(wxDataOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxDataOutputStream(wxOutputStream& s); |   wxDataOutputStream(wxOutputStream& s); | ||||||
|   virtual ~wxDataOutputStream(); |   virtual ~wxDataOutputStream(); | ||||||
|   | |||||||
| @@ -16,6 +16,8 @@ | |||||||
| #pragma interface "filefn.h" | #pragma interface "filefn.h" | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #include <wx/list.h> | ||||||
|  |  | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
| // constants | // constants | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
|   | |||||||
| @@ -17,7 +17,6 @@ | |||||||
| #include <wx/file.h> | #include <wx/file.h> | ||||||
|  |  | ||||||
| class wxFileInputStream: virtual public wxFile, public wxInputStream { | class wxFileInputStream: virtual public wxFile, public wxInputStream { | ||||||
|   DECLARE_CLASS(wxFileInputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxFileInputStream(const wxString& fileName); |   wxFileInputStream(const wxString& fileName); | ||||||
|   virtual ~wxFileInputStream(); |   virtual ~wxFileInputStream(); | ||||||
| @@ -41,7 +40,6 @@ class wxFileInputStream: virtual public wxFile, public wxInputStream { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxFileOutputStream: virtual wxFile, public wxOutputStream { | class wxFileOutputStream: virtual wxFile, public wxOutputStream { | ||||||
|   DECLARE_CLASS(wxFileOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxFileOutputStream(const wxString& fileName); |   wxFileOutputStream(const wxString& fileName); | ||||||
|   virtual ~wxFileOutputStream(); |   virtual ~wxFileOutputStream(); | ||||||
| @@ -66,7 +64,6 @@ class wxFileOutputStream: virtual wxFile, public wxOutputStream { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxFileStream: public wxFileInputStream, public wxFileOutputStream { | class wxFileStream: public wxFileInputStream, public wxFileOutputStream { | ||||||
|   DECLARE_CLASS(wxFileStream) |  | ||||||
|  public: |  public: | ||||||
|   wxFileStream(const wxString& fileName); |   wxFileStream(const wxString& fileName); | ||||||
|   virtual ~wxFileStream(); |   virtual ~wxFileStream(); | ||||||
|   | |||||||
| @@ -28,7 +28,6 @@ class wxMemoryStreamBase { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStream { | class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStream { | ||||||
|   DECLARE_CLASS(wxMemoryInputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxMemoryInputStream(const char *data, size_t length); |   wxMemoryInputStream(const char *data, size_t length); | ||||||
|   virtual ~wxMemoryInputStream(); |   virtual ~wxMemoryInputStream(); | ||||||
| @@ -47,7 +46,6 @@ class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStre | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputStream { | class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputStream { | ||||||
|   DECLARE_CLASS(wxMemoryOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxMemoryOutputStream(char *data = NULL, size_t length = 0); |   wxMemoryOutputStream(char *data = NULL, size_t length = 0); | ||||||
|   virtual ~wxMemoryOutputStream(); |   virtual ~wxMemoryOutputStream(); | ||||||
| @@ -69,7 +67,6 @@ class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputSt | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream { | class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream { | ||||||
|   DECLARE_CLASS(wxMemoryStream) |  | ||||||
|  public: |  public: | ||||||
|   wxMemoryStream(char *data = NULL, size_t length = 0); |   wxMemoryStream(char *data = NULL, size_t length = 0); | ||||||
|   virtual ~wxMemoryStream(); |   virtual ~wxMemoryStream(); | ||||||
|   | |||||||
| @@ -25,8 +25,7 @@ | |||||||
|  * wxStream: base classes |  * wxStream: base classes | ||||||
|  */ |  */ | ||||||
| class wxOutputStream; | class wxOutputStream; | ||||||
| class wxInputStream: virtual public wxObject { | class wxInputStream { | ||||||
|   DECLARE_ABSTRACT_CLASS(wxInputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxInputStream(); |   wxInputStream(); | ||||||
|   virtual ~wxInputStream(); |   virtual ~wxInputStream(); | ||||||
| @@ -43,8 +42,7 @@ class wxInputStream: virtual public wxObject { | |||||||
|   wxInputStream& operator>>(wxOutputStream& out) { return Read(out); } |   wxInputStream& operator>>(wxOutputStream& out) { return Read(out); } | ||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxOutputStream: virtual public wxObject { | class wxOutputStream { | ||||||
|   DECLARE_ABSTRACT_CLASS(wxOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxOutputStream(); |   wxOutputStream(); | ||||||
|   virtual ~wxOutputStream(); |   virtual ~wxOutputStream(); | ||||||
| @@ -66,7 +64,6 @@ class wxOutputStream: virtual public wxObject { | |||||||
|  */ |  */ | ||||||
|  |  | ||||||
| class wxFilterInputStream: public wxInputStream { | class wxFilterInputStream: public wxInputStream { | ||||||
|   DECLARE_CLASS(wxFilterInputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxFilterInputStream(wxInputStream& stream); |   wxFilterInputStream(wxInputStream& stream); | ||||||
|   virtual ~wxFilterInputStream(); |   virtual ~wxFilterInputStream(); | ||||||
| @@ -86,7 +83,6 @@ class wxFilterInputStream: public wxInputStream { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxFilterOutputStream: public wxOutputStream { | class wxFilterOutputStream: public wxOutputStream { | ||||||
|   DECLARE_CLASS(wxFilterOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxFilterOutputStream(wxOutputStream& stream); |   wxFilterOutputStream(wxOutputStream& stream); | ||||||
|   virtual ~wxFilterOutputStream(); |   virtual ~wxFilterOutputStream(); | ||||||
|   | |||||||
| @@ -19,7 +19,6 @@ | |||||||
| #include "zlib.h" | #include "zlib.h" | ||||||
|  |  | ||||||
| class wxZlibInputStream: public wxFilterInputStream { | class wxZlibInputStream: public wxFilterInputStream { | ||||||
|   DECLARE_CLASS(wxZlibInputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxZlibInputStream(wxInputStream& stream); |   wxZlibInputStream(wxInputStream& stream); | ||||||
|   virtual ~wxZlibInputStream(); |   virtual ~wxZlibInputStream(); | ||||||
| @@ -40,7 +39,6 @@ class wxZlibInputStream: public wxFilterInputStream { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| class wxZlibOutputStream: public wxFilterOutputStream { | class wxZlibOutputStream: public wxFilterOutputStream { | ||||||
|   DECLARE_CLASS(wxZlibOutputStream) |  | ||||||
|  public: |  public: | ||||||
|   wxZlibOutputStream(wxOutputStream& stream); |   wxZlibOutputStream(wxOutputStream& stream); | ||||||
|   virtual ~wxZlibOutputStream(); |   virtual ~wxZlibOutputStream(); | ||||||
|   | |||||||
| @@ -23,15 +23,8 @@ | |||||||
| #pragma hdrstop | #pragma hdrstop | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  |  | ||||||
| #define BUF_TEMP_SIZE 10000 | #define BUF_TEMP_SIZE 10000 | ||||||
|  |  | ||||||
| #if !USE_SHARED_LIBRARY |  | ||||||
| IMPLEMENT_CLASS(wxFileInputStream, wxInputStream) |  | ||||||
| IMPLEMENT_CLASS(wxFileOutputStream, wxOutputStream) |  | ||||||
| IMPLEMENT_CLASS2(wxFileStream, wxInputStream, wxOutputStream) |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
| // wxFileInputStream | // wxFileInputStream | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
|   | |||||||
| @@ -23,12 +23,6 @@ | |||||||
| #pragma hdrstop | #pragma hdrstop | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if !USE_SHARED_LIBRARY |  | ||||||
| IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream) |  | ||||||
| IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream) |  | ||||||
| IMPLEMENT_CLASS2(wxMemoryStream, wxInputStream, wxOutputStream) |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
| // wxMemoryStreamBase | // wxMemoryStreamBase | ||||||
| // ---------------------------------------------------------------------------- | // ---------------------------------------------------------------------------- | ||||||
|   | |||||||
| @@ -21,15 +21,7 @@ | |||||||
| #pragma hdrstop | #pragma hdrstop | ||||||
| #endif | #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() | wxInputStream::wxInputStream() | ||||||
|   : wxObject() |  | ||||||
| { | { | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -53,7 +45,6 @@ wxInputStream& wxInputStream::Read(wxOutputStream& stream_out) | |||||||
| } | } | ||||||
|  |  | ||||||
| wxOutputStream::wxOutputStream() | wxOutputStream::wxOutputStream() | ||||||
|   : wxObject() |  | ||||||
| { | { | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -23,11 +23,6 @@ | |||||||
| #pragma hdrstop | #pragma hdrstop | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #if !USE_SHARED_LIBRARY |  | ||||||
| IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream) |  | ||||||
| IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream) |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| ////////////////////// | ////////////////////// | ||||||
| // wxZlibInputStream | // wxZlibInputStream | ||||||
| ////////////////////// | ////////////////////// | ||||||
|   | |||||||
| @@ -345,30 +345,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList) | |||||||
| #include "wx/process.h" | #include "wx/process.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) | 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 | #if USE_TIMEDATE | ||||||
| #include "wx/date.h" | #include "wx/date.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | ||||||
|   | |||||||
| @@ -345,30 +345,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList) | |||||||
| #include "wx/process.h" | #include "wx/process.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) | 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 | #if USE_TIMEDATE | ||||||
| #include "wx/date.h" | #include "wx/date.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | ||||||
|   | |||||||
| @@ -359,29 +359,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList) | |||||||
| #include "wx/process.h" | #include "wx/process.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) | 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 | #if USE_TIMEDATE | ||||||
| #include "wx/date.h" | #include "wx/date.h" | ||||||
| IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user