A class taking the file descriptor as a data source. Most commonly used to construct a data source from stdin.
More...
#include <FdDataSource.h>
A class taking the file descriptor as a data source. Most commonly used to construct a data source from stdin.
◆ FdDataSource()
FdDataSource::FdDataSource |
( |
RingItemFactoryBase * |
pFactory, |
|
|
int |
fd |
|
) |
| |
Constructor.
- Parameters
-
pFactory | Pointer to the factory used to get items. |
fd | File descriptor open on the data source. The caller owns this, we don't close it on destruction. |
◆ ~FdDataSource()
FdDataSource::~FdDataSource |
( |
| ) |
|
|
virtual |
◆ 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
-
Implements DataSource.
The documentation for this class was generated from the following files: