NSCL DDAS  12.1-001
Support for XIA DDAS at FRIB
Public Member Functions | List of all members
FdDataSource Class Reference

A class taking the file descriptor as a data source. Most commonly used to construct a data source from stdin. More...

#include <FdDataSource.h>

Inheritance diagram for FdDataSource:
Inheritance graph
[legend]
Collaboration diagram for FdDataSource:
Collaboration graph
[legend]

Public Member Functions

 FdDataSource (RingItemFactoryBase *pFactory, int fd)
 Constructor. More...
 
virtual ~FdDataSource ()
 Destructor. More...
 
virtual CRingItem * getItem ()
 Get a ring item from the soruce. Implementation of the mandatory interface from the base class. More...
 
- Public Member Functions inherited from DataSource
 DataSource (RingItemFactoryBase *pFactory)
 Constructor. More...
 
virtual ~DataSource ()
 Destructor. More...
 
void setFactory (RingItemFactoryBase *pFactory)
 Set a new factory. More...
 

Additional Inherited Members

- Protected Attributes inherited from DataSource
RingItemFactoryBase * m_pFactory
 Pointer to our ring item factory. More...
 

Detailed Description

A class taking the file descriptor as a data source. Most commonly used to construct a data source from stdin.

Constructor & Destructor Documentation

◆ FdDataSource()

FdDataSource::FdDataSource ( RingItemFactoryBase *  pFactory,
int  fd 
)

Constructor.

Parameters
pFactoryPointer to the factory used to get items.
fdFile descriptor open on the data source. The caller owns this, we don't close it on destruction.

◆ ~FdDataSource()

FdDataSource::~FdDataSource ( )
virtual

Destructor.

Member Function Documentation

◆ getItem()

CRingItem * FdDataSource::getItem ( )
virtual

Get a ring item from the soruce. Implementation of the mandatory interface from the base class.

Returns
Pointer to the next ring item from the stream.
Return values
nullptrIf none.

Implements DataSource.


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