SRGStructureData Class
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
Class Members
virtual void SetGrowSize(UINT nSize=0)
Sets the grow size to zero -- can't expand external data
virtual void SetValue(_TCHAR)
Override to set char values
virtual void SetValue(double)
Override to set double values
virtual void SetValue(int)
Override to set int values
virtual UINT GetGrowSize()
Returns the buffer grow size (zero)
virtual void Roll(double dValue,BOOL bDirection)
Override to roll the structure data in the memory block
virtual void SetBufferSize(UINT size)
Sets the buffer size (the number of structures in the memory block)
Constructor
virtual ~SRGStructureData()
Destructor
virtual void SetStructure(void * v)
Sets a pointer to the memory block
virtual void * GetStructure()
Returns the current pointer to the memory block
virtual void SetStructureSize(int v)
Sets the size of the structures within the buffer
virtual int GetStructureSize()
Returns the size of the structures within the buffer
virtual void SetDataOffset(int v)
Sets the offset of the desired data item within the structure
virtual int GetDataOffset()
Returns the offset of the desired data item within the structure
virtual void IncrementInput()
Increments the input index
virtual void IncrementOutput()
Increments the output index
virtual void DecrementInput()
Decrements the input index
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