NewDatumEvent< DataType_t > Class Template Reference

The event sent to downloader when a new datum is ready. More...

Inheritance diagram for NewDatumEvent< DataType_t >:

Public Types

typedef DataType_t DataType
 The type of data being exchanged. More...
 

Public Member Functions

 NewDatumEvent (DataDownloader< DataType > *downloader)
 Constructor. More...
 
virtual ~NewDatumEvent ()
 Destructor. More...
 
const DataDownloader< DataType > * getDownloader () const
 Returns the downloader object which triggered this event (const version) More...
 
DataDownloader< DataType > * getDownloader ()
 Returns the downloader object which triggered this event. More...
 

Static Public Attributes

static const QEvent::Type newDatumEventType = static_cast<QEvent::Type>(QEvent::User + 1)
 The ID of this event. More...
 

Detailed Description

template<class DataType_t>
class farsa::NewDatumEvent< DataType_t >

The event sent to downloader when a new datum is ready.

If the downloader chooses to be notified with a qt event, this is the event that it receives

Definition at line 573 of file dataexchange.h.

Member Typedef Documentation

typedef DataType_t DataType

The type of data being exchanged.

Definition at line 584 of file dataexchange.h.

Constructor & Destructor Documentation

NewDatumEvent ( DataDownloader< DataType > *  downloader)
inline

Constructor.

Parameters
downloaderthe downloader object which triggered the event

Definition at line 592 of file dataexchange.h.

virtual ~NewDatumEvent ( )
inlinevirtual

Destructor.

Definition at line 601 of file dataexchange.h.

Member Function Documentation

const DataDownloader<DataType>* getDownloader ( ) const
inline

Returns the downloader object which triggered this event (const version)

Returns
a const pointer to the downloader that triggered this event

Definition at line 611 of file dataexchange.h.

DataDownloader<DataType>* getDownloader ( )
inline

Returns the downloader object which triggered this event.

Returns
a pointer to the downloader that triggered this event

Definition at line 621 of file dataexchange.h.

Member Data Documentation

const QEvent::Type newDatumEventType = static_cast<QEvent::Type>(QEvent::User + 1)
static

The ID of this event.

Definition at line 579 of file dataexchange.h.


The documentation for this class was generated from the following file: