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

rovsoft::io::AsciiOStreamer Class Reference

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

#include <AsciiOStreamer.hh>

Inheritance diagram for rovsoft::io::AsciiOStreamer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AsciiOStreamer (std::ostream *out) throw (lib::NullPointerExceptionPtr)
 Builds a AsciiOStreamer writing its output to ostream out.
virtual AsciiOStreamerwriteChar (char arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteByte (char arg) throw (IOExceptionPtr)
 Writes a single byte.
virtual AsciiOStreamerwriteUByte (unsigned char arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteShort (short arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteUShort (unsigned short arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteLong (long arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteULong (unsigned long arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteLongLong (long long arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteULongLong (unsigned long long arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteFloat (float arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteDouble (double arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteLengthString (const std::string &arg) throw (IOExceptionPtr)
virtual AsciiOStreamerwriteString (const std::string &arg) throw (IOExceptionPtr)
virtual ~AsciiOStreamer ()
 Deletes the ostream object if output is not a null pointer!.

Protected Member Functions

AsciiOStreamerwriteArraytoStream (char *array, int length) throw (IOExceptionPtr)

Protected Attributes

std::ostream * output

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.


Constructor & Destructor Documentation

rovsoft::io::AsciiOStreamer::AsciiOStreamer std::ostream *  out  )  throw (lib::NullPointerExceptionPtr)
 

Builds a AsciiOStreamer writing its output to ostream out.

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

Exceptions:
NullPointerExceptionPtr if out is a null pointer.
Parameters:
out The stream used for writting data.

rovsoft::io::AsciiOStreamer::~AsciiOStreamer  )  [virtual]
 

Deletes the ostream object if output is not a null pointer!.


Member Function Documentation

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeArraytoStream char *  array,
int  length
throw (IOExceptionPtr) [protected]
 

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

Writes a single byte.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeChar char  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.
Returns:
this object for concatenation.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeDouble double  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeFloat float  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeLengthString const std::string &  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeLong long  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeLongLong long long  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeShort short  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeString const std::string &  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeUByte unsigned char  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeULong unsigned long  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeULongLong unsigned long long  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.

AsciiOStreamer & rovsoft::io::AsciiOStreamer::writeUShort unsigned short  arg  )  throw (IOExceptionPtr) [virtual]
 

See also:
writeByte() used by this method for writing. So for details of thrown exceptions, please see this method.

Implements rovsoft::io::OStreamer.


Member Data Documentation

std::ostream* rovsoft::io::AsciiOStreamer::output [protected]
 


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