1998-07-01 17:26:46 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: datstrm.h
|
|
|
|
// Purpose: Data stream classes
|
|
|
|
// Author: Guilhem Lavaux
|
|
|
|
// Modified by:
|
|
|
|
// Created: 28/06/1998
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Guilhem Lavaux
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_DATSTREAM_H_
|
|
|
|
#define _WX_DATSTREAM_H_
|
1998-07-01 17:26:46 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "datstrm.h"
|
|
|
|
#endif
|
|
|
|
|
1998-07-12 15:16:09 +00:00
|
|
|
#include <wx/stream.h>
|
1998-07-01 17:26:46 +00:00
|
|
|
|
1998-11-06 09:33:25 +00:00
|
|
|
class WXDLLEXPORT wxDataInputStream: public wxFilterInputStream {
|
1998-07-01 17:26:46 +00:00
|
|
|
public:
|
1998-07-12 15:16:09 +00:00
|
|
|
wxDataInputStream(wxInputStream& s);
|
|
|
|
virtual ~wxDataInputStream();
|
1998-07-01 17:26:46 +00:00
|
|
|
|
|
|
|
unsigned long Read32();
|
|
|
|
unsigned short Read16();
|
|
|
|
unsigned char Read8();
|
|
|
|
double ReadDouble();
|
|
|
|
wxString ReadLine();
|
1998-07-03 17:44:34 +00:00
|
|
|
wxString ReadString();
|
1998-07-12 15:16:09 +00:00
|
|
|
};
|
|
|
|
|
1998-11-06 09:33:25 +00:00
|
|
|
class WXDLLEXPORT wxDataOutputStream: public wxFilterOutputStream {
|
1998-07-12 15:16:09 +00:00
|
|
|
public:
|
|
|
|
wxDataOutputStream(wxOutputStream& s);
|
|
|
|
virtual ~wxDataOutputStream();
|
1998-07-01 17:26:46 +00:00
|
|
|
|
|
|
|
void Write32(unsigned long i);
|
|
|
|
void Write16(unsigned short i);
|
|
|
|
void Write8(unsigned char i);
|
|
|
|
void WriteDouble(double d);
|
|
|
|
void WriteLine(const wxString& line);
|
1998-07-03 17:44:34 +00:00
|
|
|
void WriteString(const wxString& string);
|
1998-07-01 17:26:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_DATSTREAM_H_
|