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

rovsoft::messages::ULongTypeMessage Class Reference

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

#include <ULongTypeMessage.hh>

Inheritance diagram for rovsoft::messages::ULongTypeMessage:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ULongTypeMessage (unsigned short sa, unsigned short da, unsigned long val)
 Constructs a new unsigned long Type message.
 ULongTypeMessage (unsigned short sa, unsigned short da, io::IStreamer &in) throw (io::IOExceptionPtr)
 Constructs a new unsigned long 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 long 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 long value

Detailed Description

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


Constructor & Destructor Documentation

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

Constructs a new unsigned long Type message.

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

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

Constructs a new unsigned long 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::ULongTypeMessage::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.

Reimplemented in rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, and rovsoft::messages::NUByteTypeMessage.

Here is the call graph for this function:

unsigned long rovsoft::messages::ULongTypeMessage::getValue  )  const [inline]
 

Get the value of this message.

Reimplemented in rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, and rovsoft::messages::NUByteTypeMessage.

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

Reimplemented in rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, and rovsoft::messages::NUByteTypeMessage.

Here is the call graph for this function:


Member Data Documentation

unsigned long rovsoft::messages::ULongTypeMessage::value [protected]
 

Reimplemented in rovsoft::messages::NByteTypeMessage, rovsoft::messages::NShortTypeMessage, and rovsoft::messages::NUByteTypeMessage.


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