class SRGStructureData: public SRGraphDynamicData
Based upon SRGraphDynamicData, this class adds the ability to connect to external data sources that can be interpreted as an array of data structures in a memory block.
Defined in: SRGStructureData.h
CHART_API virtual void SetGrowSize(UINT nSize=0)
Sets the grow size to zero -- can't expand external data
CHART_API virtual void SetValue(_TCHAR)
Override to set char values
CHART_API virtual void SetValue(double)
Override to set double values
CHART_API virtual void SetValue(int)
Override to set int values
CHART_API virtual UINT GetGrowSize()
Returns the buffer grow size (zero)
CHART_API virtual void Roll(double dValue,BOOL bDirection)
Override to roll the structure data in the memory block
CHART_API virtual void SetBufferSize(UINT size)
Sets the buffer size (the number of structures in the memory block)
CHART_API SRGStructureData()
Constructor
CHART_API virtual ~SRGStructureData()
Destructor
CHART_API virtual void SetStructure(void * v)
Sets a pointer to the memory block
CHART_API virtual void * GetStructure()
Returns the current pointer to the memory block
CHART_API virtual void SetStructureSize(int v)
Sets the size of the structures within the buffer
CHART_API virtual int GetStructureSize()
Returns the size of the structures within the buffer
CHART_API virtual void SetDataOffset(int v)
Sets the offset of the desired data item within the structure
CHART_API virtual int GetDataOffset()
Returns the offset of the desired data item within the structure
CHART_API virtual void IncrementInput()
Increments the input index
CHART_API virtual void IncrementOutput()
Increments the output index
CHART_API virtual void DecrementInput()
Decrements the input index
CHART_API virtual void DecrementOutput()
Decrements the output index
void * m_pStructure
Pointer to the memory block that contains the structures
int m_nStructureSize
Size in bytes of the structure
int m_nDataOffset
Offset of the desired data item within the structure