NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
FdDataSource.h
Go to the documentation of this file.
1/*
2 This software is Copyright by the Board of Trustees of Michigan
3 State University (c) Copyright 2017.
4
5 You may use this software under the terms of the GNU public license
6 (GPL). The terms of this license are described at:
7
8 http://www.gnu.org/licenses/gpl.txt
9
10 Authors:
11 Ron Fox
12 Giordano Cerriza
13 Aaron Chester
14 FRIB
15 Michigan State University
16 East Lansing, MI 48824-1321
17*/
18
19#ifndef FDDATASOURCE_H
20#define FDDATASOURCE_H
21
27#include "DataSource.h"
28
35class FdDataSource : public DataSource {
36private:
37 int m_fd;
38
39public:
46 FdDataSource(ufmt::RingItemFactoryBase *pFactory, int fd);
48 virtual ~FdDataSource();
55 virtual ufmt::CRingItem *getItem();
56};
57
58#endif
Works with factories to provide a data source for undifferentiated ring items.
Abstract base class for DDAS data sources.
Definition: DataSource.h:48
A class taking the file descriptor as a data source. Most commonly used to construct a data source fr...
Definition: FdDataSource.h:35
virtual ~FdDataSource()
Destructor.
Definition: FdDataSource.cpp:32
virtual ufmt::CRingItem * getItem()
Get a ring item from the soruce. Implementation of the mandatory interface from the base class.
Definition: FdDataSource.cpp:34
FdDataSource(ufmt::RingItemFactoryBase *pFactory, int fd)
Constructor.
Definition: FdDataSource.cpp:29