The base class from which all callback-enabled classes should be derived. More...
#include <DTR.h>
Public Member Functions | |
virtual | ~DTRCallback () |
virtual void | receiveDTR (DTR_ptr dtr)=0 |
The base class from which all callback-enabled classes should be derived.
This class is a container for a callback method which is called when a DTR is to be passed to a component. Several components in data staging (eg Scheduler, Generator) are subclasses of DTRCallback, which allows them to receive DTRs through the callback system.
virtual DataStaging::DTRCallback::~DTRCallback | ( | ) | [inline, virtual] |
Empty virtual destructor
virtual void DataStaging::DTRCallback::receiveDTR | ( | DTR_ptr | dtr | ) | [pure virtual] |
Defines the callback method called when a DTR is pushed to this object. The automatic memory management of DTR_ptr ensures that the DTR object is only deleted when the last copy is deleted.
Implemented in DataStaging::DataDelivery, DataStaging::Generator, DataStaging::Processor, and DataStaging::Scheduler.