#include <BinaryLenSegmentIStreamer.hh>
Inheritance diagram for rovsoft::io::BinaryLenSegmentIStreamer:
Public Member Functions | |
BinaryLenSegmentIStreamer (std::istream *in, const char *chars, char lengthFieldOffset, bool is_PIC=false) throw (lib::NullPointerExceptionPtr) | |
A SegmentIStreamer must be initialised with a dynamically created istream object. | |
virtual char | readByte () throw (UnprefixedMetaDataExceptionPtr, PrefixedDataExceptionPtr, EndOfSegmentExceptionPtr) |
virtual char | readChar () throw (IOExceptionPtr) |
virtual unsigned char | readUByte () throw (IOExceptionPtr) |
virtual short | readShort () throw (IOExceptionPtr) |
virtual unsigned short | readUShort () throw (IOExceptionPtr) |
virtual long | readLong () throw (IOExceptionPtr) |
virtual unsigned long | readULong () throw (IOExceptionPtr) |
virtual long long | readLongLong () throw (IOExceptionPtr) |
virtual unsigned long long | readULongLong () throw (IOExceptionPtr) |
virtual float | readFloat () throw (IOExceptionPtr) |
virtual double | readDouble () throw (IOExceptionPtr) |
virtual std::string | readString () throw (IOExceptionPtr) |
virtual std::string | readString (int length) throw (IOExceptionPtr) |
Reads a string with fix length. | |
virtual int | nextStart () throw (IOExceptionPtr) |
Calls readByte() subsequently until an UnprefixedMetaDataExceptionPtr is raised, then it checks the read byte if it is the start byte if yes it returns. | |
virtual bool | isStart () throw (IOExceptionPtr) |
Test if we are at the beginning of a segment. | |
virtual bool | isEnd () throw (IOExceptionPtr) |
Test if we are at the end of a segment. | |
Protected Attributes | |
short | byteCount |
The number of bytes read, this counter gets incremented by readByte, (or readUnprefixed(). | |
bool | start |
True if nextStart() has been called and no other reading method yet. | |
short | length |
When the length byte is read its value is stored in this member. | |
int | segmentCount |
bool | isPIC |
If the Pic is on the other side of the line. |
The end of a segment is detected by reading a in the segement specified number of bytes.
|
A SegmentIStreamer must be initialised with a dynamically created istream object. The deletion of the object is accomplished by this SegmentIStreamer object at destruction.
|
|
Test if we are at the end of a segment.
Implements rovsoft::io::SegmentIStreamer. |
|
Test if we are at the beginning of a segment.
Implements rovsoft::io::SegmentIStreamer. |
|
Calls readByte() subsequently until an UnprefixedMetaDataExceptionPtr is raised, then it checks the read byte if it is the start byte if yes it returns.
Implements rovsoft::io::SegmentIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinarySubstitutionIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reads a string with fix length.
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
Reimplemented from rovsoft::io::BinaryIStreamer. Here is the call graph for this function: ![]() |
|
The number of bytes read, this counter gets incremented by readByte, (or readUnprefixed(). ) --> if it would exist. When reading a prefixed character this counter gets only incremented by one, although actually two characters were read. This field can be used for detection of the end of a message or for detection of the length byte. |
|
If the Pic is on the other side of the line.
|
|
When the length byte is read its value is stored in this member. If we are not in the data part of the message this field should contain -1. The length field is the sixth byte in a segment, (exclusive any prefixes and the start character.) For details please see the RobotBoardCommunication protocol. |
|
|
|
True if nextStart() has been called and no other reading method yet.
|