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

 SRGDynamicDataManager()

Constructor

virtual  ~SRGDynamicDataManager()

Destructor that frees the internal memory

virtual SRGraphDataList*  NewGroup()

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

virtual CScale  GetAutoScaleRange(BOOL HiLo = FALSE)

Returns the maximum and minimum values stored in this graph

virtual double  GetDataTotal(int group = -1)

Returns the sum of the data of the specified group

virtual int  GetMaxXDivisions()

Returns the count of the longest group

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

Returns the text string of the given data item

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

Add a text string for the indicating data item

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

Add a double value into the data array

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

Add a character value into the data array

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

Add an integer value into the data array