Pottu
Public Member Functions | List of all members
pottu::DataSource Class Referenceabstract

Abstract baseclass for all datasources. More...

#include <DataSource.hpp>

Inheritance diagram for pottu::DataSource:
Inheritance graph
[legend]
Collaboration diagram for pottu::DataSource:
Collaboration graph
[legend]

Public Member Functions

virtual ~DataSource ()
 Virtual destructor.
 
virtual bool allDone () const noexcept=0
 Asking if all is done. More...
 
virtual void process (std::vector< dataitem_t > &dp)=0
 Fills new dataitems to the container. More...
 

Detailed Description

Abstract baseclass for all datasources.

Datasource is a special stage in a pottu pipeline since it produces data for the pipeline. Every pipeline has a DataSource as the first stage.

Member Function Documentation

◆ allDone()

virtual bool pottu::DataSource::allDone ( ) const
pure virtualnoexcept

Asking if all is done.

Returns
True if there is no more data to give out.

Implemented in pottu::FileReader.

◆ process()

virtual void pottu::DataSource::process ( std::vector< dataitem_t > &  dp)
pure virtual

Fills new dataitems to the container.

Parameters
dpContainer where the new dataitems will be pushed.

Implemented in pottu::FileReader.


The documentation for this class was generated from the following file: