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

rovsoft::io::Receiver Class Reference

This is the base class for all receiver devices in the device manager. More...

#include <Receiver.hh>

Inheritance diagram for rovsoft::io::Receiver:

Inheritance graph
[legend]
Collaboration diagram for rovsoft::io::Receiver:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Receiver (messages::MessageReceiver *out=0)
 Construct a Receiver.
virtual void parseMessageStream (unsigned short sa, unsigned short da, IStreamer &stream, messages::MessageReceiver *out=0) throw (lib::ExceptionPtr)
 This method tries to read the data part of a message from the stream specified by stream.
virtual void putMessage (messages::MessagePtr message) throw (lib::ExceptionPtr)
 Put a message to this device.

Protected Attributes

messages::MessageReceiverinterface
 The interface to which this device is connected to.

Detailed Description

This is the base class for all receiver devices in the device manager.

It implements basic methods, that are equal in all receiver devices.


Constructor & Destructor Documentation

rovsoft::io::Receiver::Receiver messages::MessageReceiver out = 0  )  [inline]
 

Construct a Receiver.

Parameters:
out The interface to which this receiver will send its messages.


Member Function Documentation

void rovsoft::io::Receiver::parseMessageStream unsigned short  sa,
unsigned short  da,
IStreamer stream,
messages::MessageReceiver out = 0
throw (lib::ExceptionPtr) [virtual]
 

This method tries to read the data part of a message from the stream specified by stream.

Parameters:
sa The source address of the message being read.
da The destination address of the message being read.
stream The stream to read the data part of the message from.
out The messageReceiver that will be used for writing messages to the destination specified by sa! (reply)
Exceptions:
Exception throws any exception that occur while reading from stream.

Implements rovsoft::io::MessageStreamParser.

Reimplemented in rovsoft::io::NConfirmedCommandSender.

Here is the call graph for this function:

void rovsoft::io::Receiver::putMessage messages::MessagePtr  message  )  throw (lib::ExceptionPtr) [virtual]
 

Put a message to this device.

Implements rovsoft::messages::MessageReceiver.

Here is the call graph for this function:


Member Data Documentation

messages::MessageReceiver* rovsoft::io::Receiver::interface [protected]
 

The interface to which this device is connected to.


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