]> git.saurik.com Git - wxWidgets.git/blob - include/wx/datstrm.h
constraints for notebook pages work (again)
[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 __DATSTREAMH__
13 #define __DATSTREAMH__
14
15 #ifdef __GNUG__
16 #pragma interface "datstrm.h"
17 #endif
18
19 #include <wx/stream.h>
20
21 class wxDataInputStream: public wxFilterInputStream {
22 DECLARE_CLASS(wxDataInputStream)
23 public:
24 wxDataInputStream(wxInputStream& s);
25 virtual ~wxDataInputStream();
26
27 unsigned long Read32();
28 unsigned short Read16();
29 unsigned char Read8();
30 double ReadDouble();
31 wxString ReadLine();
32 wxString ReadString();
33 };
34
35 class wxDataOutputStream: public wxFilterOutputStream {
36 DECLARE_CLASS(wxDataOutputStream)
37 public:
38 wxDataOutputStream(wxOutputStream& s);
39 virtual ~wxDataOutputStream();
40
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);
47 };
48
49 #endif
50 // __DATSTREAMH__