Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rovsoft::io::BinarySubstitutionOStreamer Class Reference

This class writes to a binary stream in little endian format. More...

#include <BinarySubstitutionOStreamer.hh>

Inheritance diagram for rovsoft::io::BinarySubstitutionOStreamer:

Inheritance graph
[legend]
Collaboration diagram for rovsoft::io::BinarySubstitutionOStreamer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BinarySubstitutionOStreamer (std::ostream *out, const char *chars) throw (lib::NullPointerExceptionPtr)
 Builds a BinarySubstitutionOStreamer writing its output to ostream out.
virtual BinarySubstitutionOStreamerwriteByte (char arg) throw (IOExceptionPtr)
 Writes a byte and prefixes it if it is contained in the chars (filter) array.

Detailed Description

This class writes to a binary stream in little endian format.

That means, the LSB of a short or an int for example is send first. Some characters get prefixed before being written.


Constructor & Destructor Documentation

rovsoft::io::BinarySubstitutionOStreamer::BinarySubstitutionOStreamer std::ostream *  out,
const char *  chars
throw (lib::NullPointerExceptionPtr) [inline]
 

Builds a BinarySubstitutionOStreamer writing its output to ostream out.

the object to which out points to, should have been dynamically generated, because this BinaryOstreamer will delete it when it gets destroyed.

Exceptions:
NullPointerExceptionPtr if out is a null pointer.
Parameters:
out The stream used for writting data.
chars All the characters that should be prefixed before being written. The first character in the array is used as the prefix.


Member Function Documentation

BinarySubstitutionOStreamer & rovsoft::io::BinarySubstitutionOStreamer::writeByte char  arg  )  throw (IOExceptionPtr) [virtual]
 

Writes a byte and prefixes it if it is contained in the chars (filter) array.

Reimplemented from rovsoft::io::BinaryOStreamer.

Reimplemented in rovsoft::io::BinaryLenSegmentOStreamer.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue May 31 14:19:29 2005 for Rovsoft by  doxygen 1.4.3