DataSet

class DataSet

Implements a set of data groups with a common name.

Summary
DataSetImplements a set of data groups with a common name.
Functions
DataSetInitializes the object.
~DataSetReleases all allocated resources.
AddDataGroupAdds the data group to the data set.
GetNameReturns the name of the data set.
GetUnitReturns the unit of the data values.
GetHighestGroupValueReturns the highest summed value among all data groups of the data set.
GetAllDataEntriesReturns a vector containing the data entries of all data groups.
GetDataGroupsReturns a vector containing the data groups of the data set.
SetSortingOrderSorts the data set according to the parameter either descending or ascending.
GetSortingOrderReturns a boolean value indicating the sorting order of the data set.
SetFilteringFilters the data set according to the parameter.
GetFilteringReturns a boolean value indicating the filtering behavior of the data set.

Functions

DataSet

DataSet(std::string sName,
std::string sUnit)

Initializes the object.

Parameters

sNameName of the data set for display in the chart headline.
sUnitName of the unit of the values (e.g.  “Percentage”) for display at the vertical chart axis.

~DataSet

~DataSet()

Releases all allocated resources.

AddDataGroup

void AddDataGroup(DataGroup *pDataGroup)

Adds the data group to the data set.

Parameters

pDataGroupThe data group to be added.

GetName

std::string GetName()

Returns the name of the data set.

Returns

The name of the data set.

GetUnit

std::string GetUnit()

Returns the unit of the data values.

Returns

The unit of the data values.

GetHighestGroupValue

double GetHighestGroupValue()

Returns the highest summed value among all data groups of the data set.

Returns

The highest summed value among all data groups of the data set.

GetAllDataEntries

std::vector<DataEntry*> GetAllDataEntries()

Returns a vector containing the data entries of all data groups.

Returns

A vector containing the data entries of all data groups.

GetDataGroups

std::vector<DataGroup*> GetDataGroups()

Returns a vector containing the data groups of the data set.

Returns

A vector containing the data groups of the data set.

SetSortingOrder

void SetSortingOrder(bool bDescending)

Sorts the data set according to the parameter either descending or ascending.

Parameters

bDescendingIndicates if the data set is sorted descending (true) or ascending (false).

GetSortingOrder

bool GetSortingOrder()

Returns a boolean value indicating the sorting order of the data set.  If the sorting order is ‘descending’, true is returned, else false.

Returns

A boolean value indicating the sorting order of the data set.

SetFiltering

void SetFiltering(bool bShowAll)

Filters the data set according to the parameter.  If true, all elements are shown, else only the FILTER_SIZE biggest elements are shown and the rest is filtered.

Parameters

bShowAllIndicates if all data entries are shown (true) or if the filtering is applied (false).

GetFiltering

bool GetFiltering()

Returns a boolean value indicating the filtering behavior of the data set.  If the filtering is set to ‘show all’, true is returned, else false.

Returns

A boolean value indicating the filtering behavior of the data set.

class DataSet
Implements a set of data groups with a common name.
DataSet(std::string sName,
std::string sUnit)
Initializes the object.
~DataSet()
Releases all allocated resources.
void AddDataGroup(DataGroup *pDataGroup)
Adds the data group to the data set.
std::string GetName()
Returns the name of the data set.
std::string GetUnit()
Returns the unit of the data values.
double GetHighestGroupValue()
Returns the highest summed value among all data groups of the data set.
std::vector<DataEntry*> GetAllDataEntries()
Returns a vector containing the data entries of all data groups.
std::vector<DataGroup*> GetDataGroups()
Returns a vector containing the data groups of the data set.
void SetSortingOrder(bool bDescending)
Sorts the data set according to the parameter either descending or ascending.
bool GetSortingOrder()
Returns a boolean value indicating the sorting order of the data set.
void SetFiltering(bool bShowAll)
Filters the data set according to the parameter.
bool GetFiltering()
Returns a boolean value indicating the filtering behavior of the data set.
Number of data entries to be shown when filtering.
Close