NSCL DDAS  12.1-001
Support for XIA DDAS at FRIB
StreamDataSource.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  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
23 #ifndef STREAMDATASOURCE_H
24 #define STREAMDATASOURCE_H
25 
26 #include "DataSource.h"
27 
28 #include <istream>
29 
37 {
38 private:
39  std::istream& m_str;
40 public:
46  StreamDataSource(RingItemFactoryBase* pFactory, std::istream& str);
48  virtual ~StreamDataSource();
55  virtual CRingItem* getItem();
56 };
57 
58 
59 #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 input stream as a data source. Most commonly used to construct a data source from ...
Definition: StreamDataSource.h:37
virtual CRingItem * getItem()
Get a ring item from the soruce. Implementation of the mandatory interface from the base class.
Definition: StreamDataSource.cpp:36
virtual ~StreamDataSource()
Destructor.
Definition: StreamDataSource.cpp:33
StreamDataSource(RingItemFactoryBase *pFactory, std::istream &str)
Constructor.
Definition: StreamDataSource.cpp:27