]>
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 __DATSTREAMH__
13 #define __DATSTREAMH__
16 #pragma interface "datstrm.h"
19 #include <wx/stream.h>
21 class wxDataInputStream
: public wxFilterInputStream
{
22 DECLARE_CLASS(wxDataInputStream
)
24 wxDataInputStream(wxInputStream
& s
);
25 virtual ~wxDataInputStream();
27 unsigned long Read32();
28 unsigned short Read16();
29 unsigned char Read8();
32 wxString
ReadString();
35 class wxDataOutputStream
: public wxFilterOutputStream
{
36 DECLARE_CLASS(wxDataOutputStream
)
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
);