#include <stream.h>
Inheritance diagram for MPS::OutputStream:

Public Methods | |
| OutputStream () | |
| virtual | ~OutputStream () |
| int | getLength () const |
| char const* | getBody () const |
| void | writeint (int what) |
| void | writestring (string const &what) |
| void | writebool (bool what) |
| void | writelong (long long what) |
| void | writechar (char what) |
| void | writeReference (ref< Interface > const &what) |
| void | writefloat (float what) |
| virtual void | flush () |
Protected Methods | |
| void | write (int b) |
| virtual string | referenceTransport () const |
Protected Attributes | |
| string | buffer |
Definition at line 70 of file stream.h.
|
|
|
|
|
|
|
|
Reimplemented in FastmsgOutputStream, MPS::InetTransport::InetIOStream, and MPS::SimplTransport::SimplIOStream. Definition at line 112 of file stream.h. Referenced by MPS::InetTransport::InetDispatcher::dispatchRequest(), MPS::SimplTransport::SimplIOStream::flush(), MPS::InetTransport::InetIOStream::flush(), and FastmsgOutputStream::flush(). |
|
|
Returns the buffer content.
Definition at line 101 of file stream.h. Referenced by FastmsgOutputStream::flush(). |
|
|
Returns the buffer length.
Definition at line 100 of file stream.h. Referenced by MPS::InetTransport::InetDispatcher::dispatchRequest(), and FastmsgOutputStream::flush(). |
|
|
Returns the name of the transport we should look for addresses within when writing out Interface references in writeReference. Override this in subclasses to set the preferred transport-address-type for references we pickle for transmission.
Reimplemented in FastmsgOutputStream, MPS::InetTransport::InetIOStream, and MPS::SimplTransport::SimplIOStream. |
|
|
Appends a single byte to the message body.
|
|
|
Serialises a reference to another MPS object.
|
|
|
Serialises a boolean.
|
|
|
Serialises a char.
|
|
|
Serialises a 32-bit float.
|
|
|
Serialises a 32-bit signed int.
Referenced by MPS::SimplTransport::SimplConnection::getOutputStream(), and MPS::InetTransport::InetConnection::getOutputStream(). |
|
|
Serialises a 64-bit signed long.
|
|
|
Serialises an ASCIZ byte string.
|
|
|
The message's body.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001