NSCL DDAS  12.1-001
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 
29 using namespace ufmt;
30 
37 class FdDataSource : public DataSource
38 {
39 private:
40  int m_fd;
41 
42 public:
49  FdDataSource(RingItemFactoryBase* pFactory, int fd);
51  virtual ~FdDataSource();
58  virtual CRingItem* getItem();
59 };
60 
61 #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:38
Definition: DataSource.h:27