]>
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 | ||
34138703 JS |
12 | #ifndef _WX_DATSTREAM_H_ |
13 | #define _WX_DATSTREAM_H_ | |
cf447356 GL |
14 | |
15 | #ifdef __GNUG__ | |
16 | #pragma interface "datstrm.h" | |
17 | #endif | |
18 | ||
3d4c6a21 | 19 | #include <wx/stream.h> |
cf447356 | 20 | |
ce4169a4 RR |
21 | #if wxUSE_STREAMS |
22 | ||
c33534e5 | 23 | class WXDLLEXPORT wxDataInputStream: public wxFilterInputStream { |
cf447356 | 24 | public: |
3d4c6a21 GL |
25 | wxDataInputStream(wxInputStream& s); |
26 | virtual ~wxDataInputStream(); | |
cf447356 | 27 | |
7b8bd818 GL |
28 | wxUint32 Read32(); |
29 | wxUint16 Read16(); | |
30 | wxUint8 Read8(); | |
cf447356 | 31 | double ReadDouble(); |
eafc087e | 32 | wxString ReadString(); |
3d4c6a21 GL |
33 | }; |
34 | ||
c33534e5 | 35 | class WXDLLEXPORT wxDataOutputStream: public wxFilterOutputStream { |
3d4c6a21 GL |
36 | public: |
37 | wxDataOutputStream(wxOutputStream& s); | |
38 | virtual ~wxDataOutputStream(); | |
cf447356 | 39 | |
7b8bd818 GL |
40 | void Write32(wxUint32 i); |
41 | void Write16(wxUint16 i); | |
42 | void Write8(wxUint8 i); | |
cf447356 | 43 | void WriteDouble(double d); |
eafc087e | 44 | void WriteString(const wxString& string); |
cf447356 GL |
45 | }; |
46 | ||
ce4169a4 RR |
47 | #endif |
48 | // wxUSE_STREAMS | |
49 | ||
cf447356 | 50 | #endif |
34138703 | 51 | // _WX_DATSTREAM_H_ |