1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Data stream classes
4 // Author: Guilhem Lavaux
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DATSTREAM_H_
13 #define _WX_DATSTREAM_H_
16 #pragma interface "datstrm.h"
19 #include <wx/stream.h>
23 class WXDLLEXPORT wxDataInputStream
: public wxFilterInputStream
{
25 wxDataInputStream(wxInputStream
& s
);
26 virtual ~wxDataInputStream();
28 unsigned long Read32();
29 unsigned short Read16();
30 unsigned char Read8();
33 wxString
ReadString();
36 class WXDLLEXPORT wxDataOutputStream
: public wxFilterOutputStream
{
38 wxDataOutputStream(wxOutputStream
& s
);
39 virtual ~wxDataOutputStream();
41 void Write32(unsigned long i
);
42 void Write16(unsigned short i
);
43 void Write8(unsigned char i
);
44 void WriteDouble(double d
);
45 void WriteLine(const wxString
& line
);
46 void WriteString(const wxString
& string
);