]>
Commit | Line | Data |
---|---|---|
cf447356 GL |
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 | ||
3d4c6a21 | 19 | #include <wx/stream.h> |
cf447356 | 20 | |
3cacae09 | 21 | class wxDataInputStream: public wxFilterInputStream { |
cf447356 | 22 | public: |
3d4c6a21 GL |
23 | wxDataInputStream(wxInputStream& s); |
24 | virtual ~wxDataInputStream(); | |
cf447356 GL |
25 | |
26 | unsigned long Read32(); | |
27 | unsigned short Read16(); | |
28 | unsigned char Read8(); | |
29 | double ReadDouble(); | |
30 | wxString ReadLine(); | |
eafc087e | 31 | wxString ReadString(); |
3d4c6a21 GL |
32 | }; |
33 | ||
34 | class wxDataOutputStream: public wxFilterOutputStream { | |
35 | public: | |
36 | wxDataOutputStream(wxOutputStream& s); | |
37 | virtual ~wxDataOutputStream(); | |
cf447356 GL |
38 | |
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); | |
eafc087e | 44 | void WriteString(const wxString& string); |
cf447356 GL |
45 | }; |
46 | ||
47 | #endif | |
3d4c6a21 | 48 | // __DATSTREAMH__ |