NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
Abstract base class for DDAS data sources. More...
#include <DataSource.h>
Public Member Functions | |
DataSource (RingItemFactoryBase *pFactory) | |
Constructor. More... | |
virtual | ~DataSource () |
Destructor. More... | |
virtual CRingItem * | getItem ()=0 |
Pure-virtual method to access a ring item from the data source. Must be implemented in derived classes. More... | |
void | setFactory (RingItemFactoryBase *pFactory) |
Set a new factory. More... | |
Protected Attributes | |
RingItemFactoryBase * | m_pFactory |
Pointer to our ring item factory. More... | |
Abstract base class for DDAS data sources.
Pure abstract data source which uses a factory's ring item getters to provide ring items from a data source. Since the factory provides this, we'll need concrete classes:
ringselector | ddasdumper -
. DataSource::DataSource | ( | RingItemFactoryBase * | pFactory | ) |
Constructor.
Just saves the factory pointer - note that we gain ownershp of the factory and, therefore, it's deleted on our destruction.
|
virtual |
Destructor.
Destroys the factory.
|
pure virtual |
Pure-virtual method to access a ring item from the data source. Must be implemented in derived classes.
Implemented in StreamDataSource, and FdDataSource.
void DataSource::setFactory | ( | RingItemFactoryBase * | pFactory | ) |
Set a new factory.
Pretty simple:
|
protected |
Pointer to our ring item factory.