Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | List of all members
Elements::Examples::DataSourceUser Class Reference

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...
 

Detailed Description

This class has been created to demonstrate unit testing. It manipulates an object implementing DataSourceInterface.

Definition at line 78 of file DataSourceUser.h.

Member Function Documentation

◆ sumRecords()

double Elements::Examples::DataSourceUser::sumRecords ( const DataSourceInterface data_source)

Compute the sum of the values of the records stored into the provided DataSource.

Parameters
data_sourceA reference to an object implementing DataSourceInterface.
Returns
The sum of the values of the records into the DataSource object

Definition at line 29 of file DataSourceUser.cpp.

References Elements::Examples::DataSourceInterface::countRecords(), and Elements::Examples::DataSourceInterface::getRecordValue().

Here is the call graph for this function:

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