Elements
6.2
A C++ base framework for the Euclid Software.
|
This class has been created to demonstrate unit testing. It manipulates an object implementing DataSourceInterface. More...
#include <DataSourceUser.h>
Public Member Functions | |
double | sumRecords (const DataSourceInterface &data_source) |
Compute the sum of the values of the records stored into the provided DataSource. More... | |
This class has been created to demonstrate unit testing. It manipulates an object implementing DataSourceInterface.
Definition at line 78 of file DataSourceUser.h.
double Elements::Examples::DataSourceUser::sumRecords | ( | const DataSourceInterface & | data_source | ) |
Compute the sum of the values of the records stored into the provided DataSource.
data_source | A reference to an object implementing DataSourceInterface. |
Definition at line 29 of file DataSourceUser.cpp.
References Elements::Examples::DataSourceInterface::countRecords(), and Elements::Examples::DataSourceInterface::getRecordValue().