Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

MPS::InputStream Class Reference

Used to stream data from a Connection. More...

#include <stream.h>

Inheritance diagram for MPS::InputStream:

Inheritance graph
List of all members.

Public Methods

virtual ~InputStream ()
int readint ()
string readstring ()
bool readbool ()
long long readlong ()
char readchar ()
string readReference ()
float readfloat ()

Protected Methods

virtual int read ()=0

Detailed Description

Used to stream data from a Connection.

Definition at line 45 of file stream.h.

Constructor & Destructor Documentation

MPS::InputStream::~InputStream ( ) [inline, virtual]

Definition at line 55 of file stream.h.

Member Function Documentation

int MPS::InputStream::read ( ) [protected, pure virtual]

Reads a single byte out of the message body.

Subclasses must override this.

the byte read

Reimplemented in FastmsgInputStream, MPS::InetTransport::InetIOStream, and MPS::SimplTransport::SimplIOStream.

string MPS::InputStream::readReference ( )

Reads a reference to another MPS object.

bool MPS::InputStream::readbool ( )

Reads an encoded boolean.

char MPS::InputStream::readchar ( )

Reads an encoded char.

float MPS::InputStream::readfloat ( )

Reads an encoded 32-bit float.

int MPS::InputStream::readint ( )

Reads an encoded 32-bit signed int.

Referenced by MPS::SimplTransport::SimplConnection::getInputStream(), MPS::InetTransport::InetConnection::getInputStream(), and MPS::InetTransport::InetDemux::processEvent().

long long MPS::InputStream::readlong ( )

Reads an encoded 64-bit signed long.

string MPS::InputStream::readstring ( )

Reads an encoded ASCIZ byte string.

The documentation for this class was generated from the following file:
Generated at Wed Aug 15 01:05:30 2001 for mps-cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001