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

rovsoft::messages::UShortTypeMessage Class Reference

Base class for messages with a data part of an unsigned short. More...

#include <UShortTypeMessage.hh>

Inheritance diagram for rovsoft::messages::UShortTypeMessage:

Inheritance graph
[legend]
Collaboration diagram for rovsoft::messages::UShortTypeMessage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UShortTypeMessage (unsigned short sa, unsigned short da, unsigned short val)
 Constructs a new unsigned Short Type message.
 UShortTypeMessage (unsigned short sa, unsigned short da, io::IStreamer &in) throw (io::IOExceptionPtr)
 Constructs a new unsigned Short Type message, by reading its value from the stream in.
virtual void write (io::OStreamer &out) const throw (io::IOExceptionPtr)
 Writes this message to a stream.
unsigned short getValue () const
 Get the value 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 value

Detailed Description

Base class for messages with a data part of an unsigned short.


Constructor & Destructor Documentation

rovsoft::messages::UShortTypeMessage::UShortTypeMessage unsigned short  sa,
unsigned short  da,
unsigned short  val
[inline]
 

Constructs a new unsigned Short Type message.

Parameters:
sa The sender of this message.
da The receiver of this message.
val the value of this message.

rovsoft::messages::UShortTypeMessage::UShortTypeMessage unsigned short  sa,
unsigned short  da,
io::IStreamer in
throw (io::IOExceptionPtr) [inline]
 

Constructs a new unsigned Short Type message, by reading its value from the stream in.

Parameters:
sa The sender of this message.
da The receiver of this message.
in The stream from which this message should be build.


Member Function Documentation

int rovsoft::messages::UShortTypeMessage::getSize  )  const [virtual]
 

Returns the size of the message = the number of bytes that would be written by write.

(SA and DA are not included!)

Reimplemented from rovsoft::messages::Message.

Here is the call graph for this function:

unsigned short rovsoft::messages::UShortTypeMessage::getValue  )  const [inline]
 

Get the value of this message.

void rovsoft::messages::UShortTypeMessage::write io::OStreamer out  )  const throw (io::IOExceptionPtr) [virtual]
 

Writes this message to a stream.

SA and DA are not written!!

Reimplemented from rovsoft::messages::Message.

Here is the call graph for this function:


Member Data Documentation

unsigned short rovsoft::messages::UShortTypeMessage::value [protected]
 


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