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

rovsoft::messages::ShortTypeMessage Class Reference

Base class for messages with a data part of two bytes. More...

#include <ShortTypeMessage.hh>

Inheritance diagram for rovsoft::messages::ShortTypeMessage:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

short value

Detailed Description

Base class for messages with a data part of two bytes.


Constructor & Destructor Documentation

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

Constructs a new Short Type message.

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

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

Constructs a new 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.

rovsoft::messages::ShortTypeMessage::ShortTypeMessage const NShortTypeMessage orig  )  [inline]
 

Construct a short type message from a numbered short type message.

Parameters:
orig the original message.


Member Function Documentation

int rovsoft::messages::ShortTypeMessage::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:

short rovsoft::messages::ShortTypeMessage::getValue  )  const [inline]
 

Get the value of this message.

void rovsoft::messages::ShortTypeMessage::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

short rovsoft::messages::ShortTypeMessage::value [protected]
 


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