#include <wx/stream.h>
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();
#pragma interface "filefn.h"
#endif
+#include <wx/list.h>
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#include <wx/file.h>
class wxFileInputStream: virtual public wxFile, public wxInputStream {
- DECLARE_CLASS(wxFileInputStream)
public:
wxFileInputStream(const wxString& fileName);
virtual ~wxFileInputStream();
};
class wxFileOutputStream: virtual wxFile, public wxOutputStream {
- DECLARE_CLASS(wxFileOutputStream)
public:
wxFileOutputStream(const wxString& fileName);
virtual ~wxFileOutputStream();
};
class wxFileStream: public wxFileInputStream, public wxFileOutputStream {
- DECLARE_CLASS(wxFileStream)
public:
wxFileStream(const wxString& fileName);
virtual ~wxFileStream();
};
class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStream {
- DECLARE_CLASS(wxMemoryInputStream)
public:
wxMemoryInputStream(const char *data, size_t length);
virtual ~wxMemoryInputStream();
};
class wxMemoryOutputStream: virtual public wxMemoryStreamBase, public wxOutputStream {
- DECLARE_CLASS(wxMemoryOutputStream)
public:
wxMemoryOutputStream(char *data = NULL, size_t length = 0);
virtual ~wxMemoryOutputStream();
};
class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
- DECLARE_CLASS(wxMemoryStream)
public:
wxMemoryStream(char *data = NULL, size_t length = 0);
virtual ~wxMemoryStream();
* wxStream: base classes
*/
class wxOutputStream;
-class wxInputStream: virtual public wxObject {
- DECLARE_ABSTRACT_CLASS(wxInputStream)
+class wxInputStream {
public:
wxInputStream();
virtual ~wxInputStream();
wxInputStream& operator>>(wxOutputStream& out) { return Read(out); }
};
-class wxOutputStream: virtual public wxObject {
- DECLARE_ABSTRACT_CLASS(wxOutputStream)
+class wxOutputStream {
public:
wxOutputStream();
virtual ~wxOutputStream();
*/
class wxFilterInputStream: public wxInputStream {
- DECLARE_CLASS(wxFilterInputStream)
public:
wxFilterInputStream(wxInputStream& stream);
virtual ~wxFilterInputStream();
};
class wxFilterOutputStream: public wxOutputStream {
- DECLARE_CLASS(wxFilterOutputStream)
public:
wxFilterOutputStream(wxOutputStream& stream);
virtual ~wxFilterOutputStream();
#include "zlib.h"
class wxZlibInputStream: public wxFilterInputStream {
- DECLARE_CLASS(wxZlibInputStream)
public:
wxZlibInputStream(wxInputStream& stream);
virtual ~wxZlibInputStream();
};
class wxZlibOutputStream: public wxFilterOutputStream {
- DECLARE_CLASS(wxZlibOutputStream)
public:
wxZlibOutputStream(wxOutputStream& stream);
virtual ~wxZlibOutputStream();
#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
// ----------------------------------------------------------------------------
#pragma hdrstop
#endif
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_CLASS(wxMemoryInputStream, wxInputStream)
-IMPLEMENT_CLASS(wxMemoryOutputStream, wxOutputStream)
-IMPLEMENT_CLASS2(wxMemoryStream, wxInputStream, wxOutputStream)
-#endif
-
// ----------------------------------------------------------------------------
// wxMemoryStreamBase
// ----------------------------------------------------------------------------
#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()
{
}
}
wxOutputStream::wxOutputStream()
- : wxObject()
{
}
#pragma hdrstop
#endif
-#if !USE_SHARED_LIBRARY
-IMPLEMENT_CLASS(wxZlibInputStream, wxFilterInputStream)
-IMPLEMENT_CLASS(wxZlibOutputStream, wxFilterOutputStream)
-#endif
-
//////////////////////
// wxZlibInputStream
//////////////////////
#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)
#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)
#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)