]> git.saurik.com Git - wxWidgets.git/blame - include/wx/datstrm.h
Work on streams of all sorts. More to come.
[wxWidgets.git] / include / wx / datstrm.h
CommitLineData
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 23class WXDLLEXPORT wxDataInputStream: public wxFilterInputStream {
cf447356 24public:
3d4c6a21
GL
25 wxDataInputStream(wxInputStream& s);
26 virtual ~wxDataInputStream();
cf447356
GL
27
28 unsigned long Read32();
29 unsigned short Read16();
30 unsigned char Read8();
31 double ReadDouble();
32 wxString ReadLine();
eafc087e 33 wxString ReadString();
3d4c6a21
GL
34};
35
c33534e5 36class WXDLLEXPORT wxDataOutputStream: public wxFilterOutputStream {
3d4c6a21
GL
37 public:
38 wxDataOutputStream(wxOutputStream& s);
39 virtual ~wxDataOutputStream();
cf447356
GL
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);
eafc087e 46 void WriteString(const wxString& string);
cf447356
GL
47};
48
ce4169a4
RR
49#endif
50 // wxUSE_STREAMS
51
cf447356 52#endif
34138703 53 // _WX_DATSTREAM_H_