1998-07-12 15:24:52 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: mstream.h
|
|
|
|
// Purpose: Memory stream classes
|
|
|
|
// Author: Guilhem Lavaux
|
|
|
|
// Modified by:
|
|
|
|
// Created: 11/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Guilhem Lavaux
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_WXMMSTREAM_H__
|
|
|
|
#define _WX_WXMMSTREAM_H__
|
1998-07-12 15:24:52 +00:00
|
|
|
|
1998-07-14 12:06:50 +00:00
|
|
|
#include <wx/stream.h>
|
1998-07-12 15:24:52 +00:00
|
|
|
|
1998-10-14 17:36:50 +00:00
|
|
|
class wxMemoryInputStream: public wxInputStream {
|
1998-07-12 15:24:52 +00:00
|
|
|
public:
|
1998-07-14 12:06:50 +00:00
|
|
|
wxMemoryInputStream(const char *data, size_t length);
|
|
|
|
virtual ~wxMemoryInputStream();
|
|
|
|
|
1998-07-28 17:11:08 +00:00
|
|
|
char Peek();
|
1998-07-12 15:24:52 +00:00
|
|
|
};
|
|
|
|
|
1998-10-14 17:36:50 +00:00
|
|
|
class wxMemoryOutputStream: public wxOutputStream {
|
1998-07-12 15:24:52 +00:00
|
|
|
public:
|
1998-07-14 12:06:50 +00:00
|
|
|
wxMemoryOutputStream(char *data = NULL, size_t length = 0);
|
|
|
|
virtual ~wxMemoryOutputStream();
|
1998-07-12 15:24:52 +00:00
|
|
|
};
|
|
|
|
|
1998-07-14 12:06:50 +00:00
|
|
|
class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
|
1998-07-12 15:24:52 +00:00
|
|
|
public:
|
1998-07-14 12:06:50 +00:00
|
|
|
wxMemoryStream(char *data = NULL, size_t length = 0);
|
|
|
|
virtual ~wxMemoryStream();
|
1998-07-12 15:24:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|