#include <wx/stream.h>
-class wxDataStream: public wxFilterInputStream {
+class wxDataInputStream: public wxFilterInputStream {
+ DECLARE_CLASS(wxDataInputStream)
public:
wxDataInputStream(wxInputStream& s);
virtual ~wxDataInputStream();
};
class wxDataOutputStream: public wxFilterOutputStream {
+ DECLARE_CLASS(wxDataOutputStream)
public:
wxDataOutputStream(wxOutputStream& s);
virtual ~wxDataOutputStream();
#include <wx/stream.h>
class wxMemoryStreamBase: public wxStream {
+ DECLARE_CLASS(wxMemoryStreamBase)
public:
wxMemoryStreamBase(char *data, size_t length, int iolimit);
virtual ~wxMemoryStreamBase();
class wxMemoryInputStream: public wxMemoryStreamBase {
+ DECLARE_CLASS(wxMemoryInputStream)
public:
wxMemoryInputStream(char *data, size_t length)
: wxMemoryStreamBase(data, length, 1)
};
class wxMemoryOutputStream: public wxMemoryStreamBase {
+ DECLARE_DYNAMIC_CLASS(wxMemoryOutputStream)
public:
wxMemoryOutputStream(char *data = NULL, size_t length = 0)
: wxMemoryStreamBase(data, length, 2)
};
class wxMemoryStream: public wxMemoryStreamBase {
+ DECLARE_DYNAMIC_CLASS(wxMemoryStream)
public:
wxMemoryStream(char *data = NULL, size_t length = 0)
: wxMemoryStreamBase(data, length, 0)
class wxOutputStream;
class wxInputStream: public wxObject {
- DECLARE_ABSTRACT_CLASS(wxInputStream);
+ DECLARE_ABSTRACT_CLASS(wxInputStream)
public:
wxInputStream();
virtual ~wxInputStream();
};
class wxOutputStream: public wxObject {
- DECLARE_ABSTRACT_CLASS(wxOutputStream);
+ DECLARE_ABSTRACT_CLASS(wxOutputStream)
public:
wxOutputStream();
virtual ~wxOutputStream();
#include "wx/datstrm.h"
+#if !USE_SHARED_LIBRARY
+IMPLEMENT_CLASS(wxDataInputStream, wxFilterInputStream)
+IMPLEMENT_CLASS(wxDataOutputStream, wxFilterOutputStream)
+#endif
+
wxDataInputStream::wxDataInputStream(wxInputStream& s)
: wxFilterInputStream(s)
{
#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;
#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)
#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)
#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)