Allows to receive information about the status of an OutSlot. More...
#include <BasicOutSlot.h>
Public Member Functions | |
virtual | ~Listener () |
Destructor. | |
virtual void | startOutSlot (BasicOutSlot &outSlot) |
Gets called when an OutSlot gets connected to the first InSlot. | |
virtual void | stopOutSlot (BasicOutSlot &outSlot) |
Gets called when an OutSlot gets disconnected from the last InSlot. |
Allows to receive information about the status of an OutSlot.
You can implement this interface by your own classes and add instances of these classes to OutSlots by using the addListener method. In this case, the OutSlot calls methods of this interface when special events occur. These events are:
Please keep in mind that you should not block under any circumstance in the methods, and you should not perform time-consuming tasks. These methods are just meant to do short notifications about the events.
virtual InstantIO::BasicOutSlot::Listener::~Listener | ( | ) | [virtual] |
Destructor.
virtual void InstantIO::BasicOutSlot::Listener::startOutSlot | ( | BasicOutSlot & | outSlot | ) | [virtual] |
Gets called when an OutSlot gets connected to the first InSlot.
You can use this callback to get a notification when you should start writing values to an OutSlot.
outSlot | The OutSlot that generated the event. |
Reimplemented in InstantIO::Node.
virtual void InstantIO::BasicOutSlot::Listener::stopOutSlot | ( | BasicOutSlot & | outSlot | ) | [virtual] |
Gets called when an OutSlot gets disconnected from the last InSlot.
You can use this callback to get a notification when you can stop writing values to an OutSlot.
outSlot | The OutSlot that generated the event. |
Reimplemented in InstantIO::Node.