#include <Message.hh>
Inheritance diagram for rovsoft::messages::Message:
Public Member Functions | |
Message (unsigned short sa, unsigned short da) | |
Constructs a new empty message. | |
virtual void | write (io::OStreamer &out) const throw (io::IOExceptionPtr) |
Writes this message to a stream. | |
unsigned short | getSource () const |
Get the source of this message. | |
unsigned short | getDestination () const |
Get the destination of this message. | |
virtual int | getSize () const |
Returns the size of the message = the number of bytes that would be written by write. | |
Protected Attributes | |
unsigned short | source |
The source and the destination of this message. | |
unsigned short | destination |
The source and the destination of this message. |
|
Constructs a new empty message.
|
|
Get the destination of this message.
|
|
Returns the size of the message = the number of bytes that would be written by write. (SA and DA are not included!) Reimplemented in rovsoft::messages::ByteTypeMessage, rovsoft::messages::FloatFloatTypeMessage, rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, rovsoft::messages::NUByteTypeMessage, rovsoft::messages::ShortTypeMessage, rovsoft::messages::TimeStampedMessage, rovsoft::messages::TsFloatTypeMessage, rovsoft::messages::TsUByteTypeMessage, rovsoft::messages::UByteTypeMessage, rovsoft::messages::ULongTypeMessage, and rovsoft::messages::UShortTypeMessage. |
|
Get the source of this message.
|
|
Writes this message to a stream. SA and DA are not written!! Implements rovsoft::lib::Streamable. Reimplemented in rovsoft::messages::ByteTypeMessage, rovsoft::messages::FloatFloatTypeMessage, rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, rovsoft::messages::NUByteTypeMessage, rovsoft::messages::ShortTypeMessage, rovsoft::messages::TimeStampedMessage, rovsoft::messages::TsFloatTypeMessage, rovsoft::messages::TsUByteTypeMessage, rovsoft::messages::UByteTypeMessage, rovsoft::messages::ULongTypeMessage, and rovsoft::messages::UShortTypeMessage. |
|
The source and the destination of this message.
|
|
The source and the destination of this message.
|