Contents Up Previous Next

wxDataInputStream

This class provides functions that read data types in a portable way. So, a file written by an Intel processor can be read by a Sparc or anything else.

Derived from

wxFilterInputStream
wxInputStream
wxStreamBase

Include files

<wx/datstrm.h>

Members

wxDataInputStream::wxDataInputStream
wxDataInputStream::~wxDataInputStream
wxDataInputStream::Read8
wxDataInputStream::Read16
wxDataInputStream::Read32
wxDataInputStream::ReadDouble
wxDataInputStream::ReadLine
wxDataInputStream::ReadString


wxDataInputStream::wxDataInputStream

wxDataInputStream(wxInputStream& stream)

Constructs a datastream object from an input stream. Only read methods will be available.

Parameters

stream


wxDataInputStream::~wxDataInputStream

~wxDataInputStream()

Destroys the wxDataInputStream object.


wxDataInputStream::Read8

unsigned char Read8()

Reads a single byte from the stream.


wxDataInputStream::Read16

unsigned short Read16()

Reads a 16 bit integer from the stream.


wxDataInputStream::Read32

unsigned long Read32()

Reads a 32 bit integer from the stream.


wxDataInputStream::ReadDouble

double ReadDouble()

Reads a double (IEEE encoded) from the stream.


wxDataInputStream::ReadLine

wxString wxDataInputStream::ReadLine()

Reads a line from the stream. A line is a string which ends with
n or
r
n.


wxDataInputStream::ReadString

wxString wxDataInputStream::ReadString()

Reads a string from a stream. Actually, this function first reads a long integer specifying the length of the string (without the last null character) and then reads the string.