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

rovsoft::io::OStreamer Class Reference

This class defines the interface for writing data. More...

#include <OStreamer.hh>

Inheritance diagram for rovsoft::io::OStreamer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual OStreamerwriteChar (char arg)=0 throw (IOExceptionPtr)
 Writes a single character.
virtual OStreamerwriteByte (char arg)=0 throw (IOExceptionPtr)
 Writes a single byte.
virtual OStreamerwriteUByte (unsigned char arg)=0 throw (IOExceptionPtr)
 Writes a single unsigned byte.
virtual OStreamerwriteShort (short arg)=0 throw (IOExceptionPtr)
 Writes a single short.
virtual OStreamerwriteUShort (unsigned short arg)=0 throw (IOExceptionPtr)
 Writes a single unsigned short.
virtual OStreamerwriteLong (long arg)=0 throw (IOExceptionPtr)
 Writes a single long.
virtual OStreamerwriteULong (unsigned long arg)=0 throw (IOExceptionPtr)
 Writes a single unsigned long.
virtual OStreamerwriteLongLong (long long arg)=0 throw (IOExceptionPtr)
 Writes a single long long.
virtual OStreamerwriteULongLong (unsigned long long arg)=0 throw (IOExceptionPtr)
 Writes a single unsigned long long.
virtual OStreamerwriteFloat (float arg)=0 throw (IOExceptionPtr)
 Writes a single float.
virtual OStreamerwriteDouble (double arg)=0 throw (IOExceptionPtr)
 Writes a single double.
virtual OStreamerwriteLengthString (const std::string &arg)=0 throw (IOExceptionPtr)
 Write a string together with its length.
virtual OStreamerwriteString (const std::string &arg)=0 throw (IOExceptionPtr)
 Write a string without its length.
virtual ~OStreamer ()
 Virtual destructor.

Detailed Description

This class defines the interface for writing data.


Constructor & Destructor Documentation

virtual rovsoft::io::OStreamer::~OStreamer  )  [inline, virtual]
 

Virtual destructor.


Member Function Documentation

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

Writes a single byte.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, rovsoft::io::BinaryOStreamer, and rovsoft::io::BinarySubstitutionOStreamer.

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

Writes a single character.

For binary protocols this function does the same as writeByte, for string based protocols, writeChar writes the character as character in the stream, writeByte translates it into the string representation of the ASCII code. E.g.: writeChar('1') --> '1' is sent. writeByte('1') --> 49 is sent.

Returns:
This object so that concatenation is possible.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single double.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single float.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Write a string together with its length.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single long.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single long long.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single short.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Write a string without its length.

-->The receiver has to know the length!

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single unsigned byte.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single unsigned long.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single unsigned long long.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.

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

Writes a single unsigned short.

Implemented in rovsoft::io::AsciiOStreamer, rovsoft::io::BinaryLenSegmentOStreamer, and rovsoft::io::BinaryOStreamer.


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