Elements
6.2
A C++ base framework for the Euclid Software.
|
This class has been created to demonstrate unit testing. It is an Interface over a DataSource (a File, a DataBase Table, ...). More...
#include <DataSourceUser.h>
Public Member Functions | |
virtual std::size_t | countRecords () const =0 |
Count the number of records into the DataSource. More... | |
virtual double | getRecordValue (std::size_t index) const =0 |
Fetch the value of the n-th record of the DataSource. More... | |
virtual | ~DataSourceInterface ()=default |
This class has been created to demonstrate unit testing. It is an Interface over a DataSource (a File, a DataBase Table, ...).
Note that as we test the call to this interface, no implementation is provided.
Definition at line 46 of file DataSourceUser.h.
|
virtualdefault |
|
pure virtual |
Count the number of records into the DataSource.
Referenced by Elements::Examples::DataSourceUser::sumRecords().
|
pure virtual |
Fetch the value of the n-th record of the DataSource.
index | The zero-based index of the record into the DataSource. |
Elements::Exception | If no record exists at the specified index. |
Referenced by Elements::Examples::DataSourceUser::sumRecords().