NSCL DDAS 12.2-009
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
37private:
38 std::istream &m_str;
39public:
45 StreamDataSource(ufmt::RingItemFactoryBase *pFactory, std::istream &str);
47 virtual ~StreamDataSource();
54 virtual ufmt::CRingItem *getItem();
55};
56
57#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:36
virtual ufmt::CRingItem * getItem()
Get a ring item from the soruce. Implementation of the mandatory interface from the base class.
Definition: StreamDataSource.cpp:35
virtual ~StreamDataSource()
Destructor.
Definition: StreamDataSource.cpp:33
StreamDataSource(ufmt::RingItemFactoryBase *pFactory, std::istream &str)
Constructor.
Definition: StreamDataSource.cpp:29