##// END OF EJS Templates
Updates DataSourceController::loadProductItem() method...
Updates DataSourceController::loadProductItem() method - Passes the DataSource uid as a parameter of the method. The uid will be used to retrieve the right provider, which will be passed for the variable creation - Stores data providers as shared_ptr instead of unique_ptr - Updates the mock plugin to pass the data source uid to the loadProductItem() method

File last commit:

r118:2c63a29c9c11
r155:31990a7209fc
Show More
ScalarSeries.cpp
13 lines | 422 B | text/x-c | CppLexer
#include <Data/ScalarSeries.h>
ScalarSeries::ScalarSeries(int size, const QString &xAxisUnit, const QString &valuesUnit)
: DataSeries{std::make_shared<ArrayData<1> >(size), xAxisUnit,
std::make_shared<ArrayData<1> >(size), valuesUnit}
{
}
void ScalarSeries::setData(int index, double x, double value) noexcept
{
xAxisData()->setData(index, x);
valuesData()->setData(index, value);
}