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 AsciiOStreamer & writeChar (char arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeByte (char arg) throw (IOExceptionPtr)
 Writes a single byte.
virtual AsciiOStreamer & writeUByte (unsigned char arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeShort (short arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeUShort (unsigned short arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeLong (long arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeULong (unsigned long arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeLongLong (long long arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeULongLong (unsigned long long arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeFloat (float arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeDouble (double arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeLengthString (const std::string &arg) throw (IOExceptionPtr)
virtual AsciiOStreamer & writeString (const std::string &arg) throw (IOExceptionPtr)
virtual ~AsciiOStreamer ()
 Deletes the ostream object if output is not a null pointer!.

Protected Member Functions

AsciiOStreamer & writeArraytoStream (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