Allows to receive information about the status of an InSlot. More...
#include <BasicInSlot.h>
Public Member Functions | |
virtual | ~Listener () |
Destructor. | |
virtual void | startInSlot (BasicInSlot &inSlot) |
Gets called when an InSlot gets connected to the first OutSlot. | |
virtual void | stopInSlot (BasicInSlot &inSlot) |
Gets called when an InSlot gets disconnected from the last OutSlot. | |
virtual void | newData (BasicInSlot &inSlot) |
Gets called when there is new data available on an InSlot. |
Allows to receive information about the status of an InSlot.
You can implement this interface by your own classes and add instances of these classes to InSlots by using the addListener method. In this case, the InSlot 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::BasicInSlot::Listener::~Listener | ( | ) | [virtual] |
Destructor.
virtual void InstantIO::BasicInSlot::Listener::startInSlot | ( | BasicInSlot & | inSlot | ) | [virtual] |
Gets called when an InSlot gets connected to the first OutSlot.
You can use this callback to get a notification when you should start reading values from an InSlot.
inSlot | The InSlot that generated the event. |
Reimplemented in InstantIO::Node.
virtual void InstantIO::BasicInSlot::Listener::stopInSlot | ( | BasicInSlot & | inSlot | ) | [virtual] |
Gets called when an InSlot gets disconnected from the last OutSlot.
You can use this callback to get a notification when you can stop reading values from an InSlot.
inSlot | The InSlot that generated the event. |
Reimplemented in InstantIO::Node.
virtual void InstantIO::BasicInSlot::Listener::newData | ( | BasicInSlot & | inSlot | ) | [virtual] |