#endif
#include <stdio.h>
-#include <wx/object.h>
-#include <wx/string.h>
-
-#ifdef _MSC_VER
- #define off_t _off_t
-#endif
+#include "wx/object.h"
+#include "wx/string.h"
+#include "wx/filefn.h" // for off_t and wxSeekMode
/*
* wxStream: base classes
*/
-
-typedef enum {
- wxFromStart, wxFromCurrent, wxFromEnd
-} wxSeekMode;
-
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();