// ---------------------------------------------------------------------------
typedef enum {
- wxStream_NOERROR,
- wxStream_EOF
+ wxStream_NOERROR = 0,
+ wxStream_EOF,
+ wxStream_WRITE_ERR,
+ wxStream_READ_ERR
} wxStreamError;
class WXDLLEXPORT wxStreamBase {
// IO functions
virtual char Peek();
char GetC();
- wxInputStream& Read(void *buffer, size_t size);
+ virtual wxInputStream& Read(void *buffer, size_t size);
wxInputStream& Read(wxOutputStream& stream_out);
// Position functions
wxOutputStream(wxStreamBuffer *sbuf);
virtual ~wxOutputStream();
- wxOutputStream& Write(const void *buffer, size_t size);
+ virtual wxOutputStream& Write(const void *buffer, size_t size);
wxOutputStream& Write(wxInputStream& stream_in);
off_t SeekO(off_t pos, wxSeekMode mode = wxFromStart);