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

rovsoft::io::BinaryLenSegmentOStreamer Class Reference

This class makes writing to a segmented stream with the end of the segment specified by length field possible. More...

#include <BinaryLenSegmentOStreamer.hh>

Inheritance diagram for rovsoft::io::BinaryLenSegmentOStreamer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BinaryLenSegmentOStreamer (std::ostream *out, const char *chars, unsigned char lenPos, bool is_PIC) throw (lib::NullPointerExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteByte (char arg) throw (IOExceptionPtr)
 Before this or any other method can be called, beginSegment has to be called.
virtual BinaryLenSegmentOStreamerwriteChar (char arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteUByte (unsigned char arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteShort (short arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteUShort (unsigned short arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteLong (long arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteULong (unsigned long arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteLongLong (long long arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteULongLong (unsigned long long arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteFloat (float arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteDouble (double arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteLengthString (const std::string &arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerwriteString (const std::string &arg) throw (IOExceptionPtr)
virtual BinaryLenSegmentOStreamerbeginSegment (unsigned char length) throw (IOExceptionPtr)
 Begin a new segment, which ends after writing all bytes before the length field including the length field and length number of additional bytes.

Protected Attributes

bool inside
int dataLength
int segmentLength
int currentPosition
bool isPIC

Detailed Description

This class makes writing to a segmented stream with the end of the segment specified by length field possible.

(See RobotBoardCommunication)


Constructor & Destructor Documentation

rovsoft::io::BinaryLenSegmentOStreamer::BinaryLenSegmentOStreamer std::ostream *  out,
const char *  chars,
unsigned char  lenPos,
bool  is_PIC
throw (lib::NullPointerExceptionPtr) [inline]
 


Member Function Documentation

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::beginSegment unsigned char  length  )  throw (IOExceptionPtr) [virtual]
 

Begin a new segment, which ends after writing all bytes before the length field including the length field and length number of additional bytes.

Implements rovsoft::io::SegmentOStreamer.

Here is the call graph for this function:

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

Before this or any other method can be called, beginSegment has to be called.

Parameters:
arg The byte to write.

Reimplemented from rovsoft::io::BinarySubstitutionOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:

BinaryLenSegmentOStreamer & rovsoft::io::BinaryLenSegmentOStreamer::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.

Reimplemented from rovsoft::io::BinaryOStreamer.

Here is the call graph for this function:


Member Data Documentation

int rovsoft::io::BinaryLenSegmentOStreamer::currentPosition [protected]
 

int rovsoft::io::BinaryLenSegmentOStreamer::dataLength [protected]
 

bool rovsoft::io::BinaryLenSegmentOStreamer::inside [protected]
 

bool rovsoft::io::BinaryLenSegmentOStreamer::isPIC [protected]
 

int rovsoft::io::BinaryLenSegmentOStreamer::segmentLength [protected]
 


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