* Moved ReadLine()/WriteLine() to wxIn/OutputStream
[wxWidgets.git] / include / wx / datstrm.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: datstrm.h
3 // Purpose: Data stream classes
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 28/06/1998
7 // RCS-ID: $Id$
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DATSTREAM_H_
13 #define _WX_DATSTREAM_H_
14
15 #ifdef __GNUG__
16 #pragma interface "datstrm.h"
17 #endif
18
19 #include <wx/stream.h>
20
21 #if wxUSE_STREAMS
22
23 class WXDLLEXPORT wxDataInputStream: public wxFilterInputStream {
24 public:
25 wxDataInputStream(wxInputStream& s);
26 virtual ~wxDataInputStream();
27
28 wxUint32 Read32();
29 wxUint16 Read16();
30 wxUint8 Read8();
31 double ReadDouble();
32 wxString ReadString();
33 };
34
35 class WXDLLEXPORT wxDataOutputStream: public wxFilterOutputStream {
36 public:
37 wxDataOutputStream(wxOutputStream& s);
38 virtual ~wxDataOutputStream();
39
40 void Write32(wxUint32 i);
41 void Write16(wxUint16 i);
42 void Write8(wxUint8 i);
43 void WriteDouble(double d);
44 void WriteString(const wxString& string);
45 };
46
47 #endif
48 // wxUSE_STREAMS
49
50 #endif
51 // _WX_DATSTREAM_H_