SRGDynamicDataManager Class

class SRGDynamicDataManager

SRGDynamicDataManager is a alternate data manager to SRGDataManager. See the description of SRGDataManager for general information about data managers. SRGDataManager can be used for all Data Storage models (Standard, Dynamic, or Structure), but it requires special data setup code to utilize the Dynamic and Structure models. SRGDynamicDataManager is specialized for the Dynamic data model, making the Dynamic model easier to use. SRGDynamicDataManager is used by default with SRDynamicGraph.

Defined in: DataMgr.h

Class Members

CHART_API SRGDynamicDataManager()

Constructor

CHART_API virtual ~SRGDynamicDataManager()

Destructor that frees the internal memory

CHART_API virtual SRGraphDataList* NewGroup()

Creates a new SRGraphDataList object and initializes it with a SRGraphDynamicData object

CHART_API virtual CScale GetAutoScaleRange(BOOL HiLo = FALSE)

Returns the maximum and minimum values stored in this graph

CHART_API virtual double GetDataTotal(int group = -1)

Returns the sum of the data of the specified group

CHART_API virtual int GetMaxXDivisions()

Returns the count of the longest group

CHART_API CString GetText(int group, int index, int code = 1)

Returns the text string of the given data item

CHART_API virtual void SetText(int index,int group,LPCTSTR text)

Add a text string for the indicating data item

CHART_API virtual void SetValue(int index,int group,double number)

Add a double value into the data array

CHART_API virtual void SetValue(int index,int group,_TCHAR number)

Add a character value into the data array

CHART_API virtual void SetValue(int index,int group,int number)

Add an integer value into the data array