#include <DeviceManager.hh>
Inheritance diagram for rovsoft::io::DeviceManager:
Public Member Functions | |
virtual void | parseMessageStream (unsigned short sa, unsigned short da, IStreamer &stream, messages::MessageReceiver *out=0) throw (lib::ExceptionPtr) |
This method is used by for example the flow controller, for sending streams to devices for parsing. | |
virtual void | putMessage (const messages::MessagePtr message) throw (ReadOnlyExceptionPtr, lib::OutOfRangeExceptionPtr, lib::NullPointerExceptionPtr) |
By implementing the MessageReceiver class, the Device Manager can be used as message router. | |
void | addDeviceType (DeviceContainer &type) |
Adds a device container to the end of the vector types. | |
void | setDeviceContainer (unsigned char index, DeviceContainer &type) |
Sets a device container at the specified index to the new value. | |
Protected Attributes | |
std::vector< DeviceContainer * > | types |
The vector of device types that exist. |
This class forwards any calls to parseMessageStream() to the responsible device containers.
|
Adds a device container to the end of the vector types.
|
|
This method is used by for example the flow controller, for sending streams to devices for parsing.
Implements rovsoft::io::MessageStreamParser. |
|
By implementing the MessageReceiver class, the Device Manager can be used as message router. It will forward all messages to the specified device, throwing a ReadOnlyExceptionPtr if device doesn't support writing.
Implements rovsoft::messages::MessageReceiver. |
|
Sets a device container at the specified index to the new value. The index does not need to exist.
|
|
The vector of device types that exist.
|