]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/datstrm.h
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>
21 class wxDataInputStream
: virtual public wxFilterInputStream
{
23 wxDataInputStream(wxInputStream
& s
);
24 virtual ~wxDataInputStream();
26 unsigned long Read32();
27 unsigned short Read16();
28 unsigned char Read8();
31 wxString
ReadString();
34 class wxDataOutputStream
: virtual public wxFilterOutputStream
{
36 wxDataOutputStream(wxOutputStream
& s
);
37 virtual ~wxDataOutputStream();
39 void Write32(unsigned long i
);
40 void Write16(unsigned short i
);
41 void Write8(unsigned char i
);
42 void WriteDouble(double d
);
43 void WriteLine(const wxString
& line
);
44 void WriteString(const wxString
& string
);
47 class wxDataStream
: public wxDataInputStream
, public wxDataOutputStream
,
48 public wxFilterStream
{
50 wxDataStream(wxStream
& stream
);