Pottu
DataSource.hpp
Go to the documentation of this file.
1 
6 #ifndef H_POTTU_DATASOURCE
7 #define H_POTTU_DATASOURCE
8 
9 
10 #include "StageBase.hpp"
11 
12 #include <vector>
13 
14 
15 namespace pottu {
16 
23  class DataSource : public StageBase {
24  public:
27  virtual ~DataSource() {}
28 
33  virtual bool allDone() const noexcept = 0;
34 
39  virtual void process( std::vector<dataitem_t> &dp ) = 0;
40 
41  };
42 
43 
44 
45 }
46 
47 
48 #endif
49 
Abstract baseclass for all datasources.
Definition: DataSource.hpp:23
virtual bool allDone() const noexcept=0
Asking if all is done.
virtual void process(std::vector< dataitem_t > &dp)=0
Fills new dataitems to the container.
virtual ~DataSource()
Virtual destructor.
Definition: DataSource.hpp:27
Abstract baseclass for all pipeline stage objects.
Definition: StageBase.hpp:16
Definition: mainpage.dox:6
Raw dataitem in tdr binary data.
Definition: dataitem.hpp:343