]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/datstrm.h
event/leave events
[wxWidgets.git] / include / wx / datstrm.h
... / ...
CommitLineData
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
21class wxDataStream {
22public:
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 wxString ReadString();
35
36 void Write32(unsigned long i);
37 void Write16(unsigned short i);
38 void Write8(unsigned char i);
39 void WriteDouble(double d);
40 void WriteLine(const wxString& line);
41 void WriteString(const wxString& string);
42protected:
43 istream *m_istream;
44 ostream *m_ostream;
45};
46
47#endif
48 // __HELPBASEH__