]> git.saurik.com Git - wxWidgets.git/commitdiff
Added IMPLEMENT_CLASS, ... about wxStream classes (I hope I didn't make mistakes).
authorGuilhem Lavaux <lavaux@easynet.fr>
Sun, 12 Jul 1998 15:36:53 +0000 (15:36 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Sun, 12 Jul 1998 15:36:53 +0000 (15:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/datstrm.h
include/wx/mstream.h
include/wx/stream.h
src/common/datstrm.cpp
src/common/mstream.cpp
src/gtk/data.cpp
src/gtk1/data.cpp
src/msw/data.cpp

index debcaaf0c9a915dc343b51e1307acca9e03ff6f7..d329626d124763591fab22c9aa05fb6b4f5ee98c 100644 (file)
@@ -18,7 +18,8 @@
 
 #include <wx/stream.h>
 
-class wxDataStream: public wxFilterInputStream {
+class wxDataInputStream: public wxFilterInputStream {
+  DECLARE_CLASS(wxDataInputStream)
 public:
   wxDataInputStream(wxInputStream& s);
   virtual ~wxDataInputStream();
@@ -32,6 +33,7 @@ public:
 };
 
 class wxDataOutputStream: public wxFilterOutputStream {
+  DECLARE_CLASS(wxDataOutputStream)
  public:
   wxDataOutputStream(wxOutputStream& s);
   virtual ~wxDataOutputStream();
index 68c82681d945ebfa52c1d052813584f2970f339f..9cc7aab26a5404b167ff5ccf8a1550317af3c0b2 100644 (file)
@@ -14,6 +14,7 @@
 #include <wx/stream.h>
 
 class wxMemoryStreamBase: public wxStream {
+  DECLARE_CLASS(wxMemoryStreamBase)
  public:
   wxMemoryStreamBase(char *data, size_t length, int iolimit);
   virtual ~wxMemoryStreamBase();
@@ -49,6 +50,7 @@ class wxMemoryStreamBase: public wxStream {
 
 
 class wxMemoryInputStream: public wxMemoryStreamBase {
+  DECLARE_CLASS(wxMemoryInputStream)
  public:
   wxMemoryInputStream(char *data, size_t length)
      : wxMemoryStreamBase(data, length, 1)
@@ -56,6 +58,7 @@ class wxMemoryInputStream: public wxMemoryStreamBase {
 };
 
 class wxMemoryOutputStream: public wxMemoryStreamBase {
+  DECLARE_DYNAMIC_CLASS(wxMemoryOutputStream)
  public:
   wxMemoryOutputStream(char *data = NULL, size_t length = 0)
      : wxMemoryStreamBase(data, length, 2)
@@ -63,6 +66,7 @@ class wxMemoryOutputStream: public wxMemoryStreamBase {
 };
 
 class wxMemoryStream: public wxMemoryStreamBase {
+  DECLARE_DYNAMIC_CLASS(wxMemoryStream)
  public:
   wxMemoryStream(char *data = NULL, size_t length = 0)
      : wxMemoryStreamBase(data, length, 0)
index 8f6643cde80fe4115b57bff12fd794d466a0b294..a0800e136807160473448c1f67fdba8d6172358c 100644 (file)
@@ -30,7 +30,7 @@ typedef enum {
 
 class wxOutputStream;
 class wxInputStream: public wxObject {
-  DECLARE_ABSTRACT_CLASS(wxInputStream);
+  DECLARE_ABSTRACT_CLASS(wxInputStream)
  public:
   wxInputStream();
   virtual ~wxInputStream();
@@ -46,7 +46,7 @@ class wxInputStream: public wxObject {
 };
 
 class wxOutputStream: public wxObject {
-  DECLARE_ABSTRACT_CLASS(wxOutputStream);
+  DECLARE_ABSTRACT_CLASS(wxOutputStream)
  public:
   wxOutputStream();
   virtual ~wxOutputStream();
index 489c0cea9783f2925fa7dd99fbc76b232212817a..f4ccc714a42e19bd0fac37c0e2847186a0e7ea33 100644 (file)
 
 #include "wx/datstrm.h"
 
+#if !USE_SHARED_LIBRARY
+IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
+IMPLEMENT_CLASS(wxDataOutputStream, wxFilterOutputStream)
+#endif
+
 wxDataInputStream::wxDataInputStream(wxInputStream& s)
   : wxFilterInputStream(s)
 {
index 3a1264e3fbaa379c51bb29301aa0768fa6a92831..7bed3cbf118fc8778eb01faff1a79f24b00ab901 100644 (file)
 #include <wx/stream.h>
 #include <wx/mstream.h>
 
+#if !USE_SHARED_LIBRARY
+IMPLEMENT_CLASS(wxMemoryStreamBase, wxStream)
+IMPLEMENT_CLASS(wxMemoryInputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryOutputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryStream, wxMemoryStreamBase)
+#endif
+
 wxMemoryStreamBase::wxMemoryStreamBase(char *data, size_t length, int iolimit)
 {
   m_buffer = data;
index 42facd4ae83e0c4ba483c11da8e44d9df103e288..416bdd9474dc1fd812e66035037fbfb0d4ebe9b9 100644 (file)
@@ -345,6 +345,28 @@ 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_ABSTRACT_CLASS2(wxStream, wxInputStream, wxOutputStream)
+IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
+IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
+
+IMPLEMENT_CLASS(wxFileStreamBase, wxStream)
+IMPLEMENT_CLASS(wxFileInputStream, wxFileStreamBase)
+IMPLEMENT_CLASS(wxFileOutputStream, wxFileStreamBase)
+
+IMPLEMENT_CLASS(wxMemoryStreamBase, wxStream)
+IMPLEMENT_CLASS(wxMemoryInputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryOutputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryStream, wxMemoryStreamBase)
+
+IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
+IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
+
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
index 42facd4ae83e0c4ba483c11da8e44d9df103e288..416bdd9474dc1fd812e66035037fbfb0d4ebe9b9 100644 (file)
@@ -345,6 +345,28 @@ 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_ABSTRACT_CLASS2(wxStream, wxInputStream, wxOutputStream)
+IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
+IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
+
+IMPLEMENT_CLASS(wxFileStreamBase, wxStream)
+IMPLEMENT_CLASS(wxFileInputStream, wxFileStreamBase)
+IMPLEMENT_CLASS(wxFileOutputStream, wxFileStreamBase)
+
+IMPLEMENT_CLASS(wxMemoryStreamBase, wxStream)
+IMPLEMENT_CLASS(wxMemoryInputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryOutputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryStream, wxMemoryStreamBase)
+
+IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
+IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
+
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
index a692201c45a2348476636ef3ef1ce9291af664d3..7354a35f1ac6650a575a83e6d03c17844015c753 100644 (file)
@@ -359,6 +359,28 @@ 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_ABSTRACT_CLASS2(wxStream, wxInputStream, wxOutputStream)
+IMPLEMENT_CLASS(wxFilterInputStream, wxInputStream)
+IMPLEMENT_CLASS(wxFilterOutputStream, wxOutputStream)
+
+IMPLEMENT_CLASS(wxFileStreamBase, wxStream)
+IMPLEMENT_CLASS(wxFileInputStream, wxFileStreamBase)
+IMPLEMENT_CLASS(wxFileOutputStream, wxFileStreamBase)
+
+IMPLEMENT_CLASS(wxMemoryStreamBase, wxStream)
+IMPLEMENT_CLASS(wxMemoryInputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryOutputStream, wxMemoryStreamBase)
+IMPLEMENT_DYNAMIC_CLASS(wxMemoryStream, wxMemoryStreamBase)
+
+IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
+IMPLEMENT_CLASS(wxDataOutputStream, wxFilterInputStream)
+
 #if USE_TIMEDATE
 #include "wx/date.h"
 IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)