]> git.saurik.com Git - wxWidgets.git/blob - include/wx/datstrm.h
Various documentation changes, makefile fixes
[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/wx.h"
20
21 class wxDataStream {
22 public:
23 wxDataStream(iostream& s);
24 wxDataStream(istream& s);
25 wxDataStream(ostream& s);
26
27 virtual ~wxDataStream();
28
29 unsigned long Read32();
30 unsigned short Read16();
31 unsigned char Read8();
32 double ReadDouble();
33 wxString ReadLine();
34
35 void Write32(unsigned long i);
36 void Write16(unsigned short i);
37 void Write8(unsigned char i);
38 void WriteDouble(double d);
39 void WriteLine(const wxString& line);
40 protected:
41 istream *m_istream;
42 ostream *m_ostream;
43 };
44
45 #endif
46 // __HELPBASEH__