]> git.saurik.com Git - wxWidgets.git/blame - include/wx/datstrm.h
Removed some consts from tabctrl.h; fixed some other errors
[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
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
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);
40protected:
41 istream *m_istream;
42 ostream *m_ostream;
43};
44
45#endif
46 // __HELPBASEH__