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

rovsoft::messages::FloatFloatTypeMessage Class Reference

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

#include <FloatFloatTypeMessage.hh>

Inheritance diagram for rovsoft::messages::FloatFloatTypeMessage:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FloatFloatTypeMessage (unsigned short sa, unsigned short da, float val1, float val2)
 Constructs a new Float Float Type message.
 FloatFloatTypeMessage (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.
virtual void write (io::OStreamer &out) const throw (io::IOExceptionPtr)
 Writes this message to a stream.
float getValue1 () const
 Get the value of this message (first part).
float getValue2 () const
 Get the value of this message (second part).
virtual int getSize () const
 Returns the size of the message = the number of bytes that would be written by write.

Protected Attributes

float value1
float value2

Detailed Description

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


Constructor & Destructor Documentation

rovsoft::messages::FloatFloatTypeMessage::FloatFloatTypeMessage unsigned short  sa,
unsigned short  da,
float  val1,
float  val2
[inline]
 

Constructs a new Float Float Type message.

Parameters:
sa The sender of this message.
da The receiver of this message.
val1 the value of this message. (first)
val2 the value of this message. (first)

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


Member Function Documentation

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

float rovsoft::messages::FloatFloatTypeMessage::getValue1  )  const [inline]
 

Get the value of this message (first part).

float rovsoft::messages::FloatFloatTypeMessage::getValue2  )  const [inline]
 

Get the value of this message (second part).

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

float rovsoft::messages::FloatFloatTypeMessage::value1 [protected]
 

float rovsoft::messages::FloatFloatTypeMessage::value2 [protected]
 


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