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

rovsoft::messages::NShortTypeMessage Class Reference

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

#include <NShortTypeMessage.hh>

Inheritance diagram for rovsoft::messages::NShortTypeMessage:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NShortTypeMessage (unsigned short sa, unsigned short da, unsigned long num, short val)
 Constructs a new numbered Short Type message.
 NShortTypeMessage (unsigned short sa, unsigned short da, io::IStreamer &in) throw (io::IOExceptionPtr)
 Constructs a new numbered 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.
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 and a number.


Constructor & Destructor Documentation

rovsoft::messages::NShortTypeMessage::NShortTypeMessage unsigned short  sa,
unsigned short  da,
unsigned long  num,
short  val
[inline]
 

Constructs a new numbered Short Type message.

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

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

Constructs a new numbered 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::NShortTypeMessage::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::ULongTypeMessage.

Here is the call graph for this function:

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

Get the value of this message.

Reimplemented from rovsoft::messages::ULongTypeMessage.

void rovsoft::messages::NShortTypeMessage::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::ULongTypeMessage.

Here is the call graph for this function:


Member Data Documentation

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

Reimplemented from rovsoft::messages::ULongTypeMessage.


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