You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
950 B
C
39 lines
950 B
C
|
1 month ago
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
//PointSeriesFactory.h
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "PointSeries.h"
|
||
|
|
|
||
|
|
#define POINTSERIES_MEMORYSIZE 8192
|
||
|
|
class CPointSeriesMemory
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CPointSeriesMemory();
|
||
|
|
~CPointSeriesMemory();
|
||
|
|
|
||
|
|
CPointSeries m_seriesarray[POINTSERIES_MEMORYSIZE];
|
||
|
|
BYTE m_flag[POINTSERIES_MEMORYSIZE];
|
||
|
|
DWORD m_dwCount;
|
||
|
|
|
||
|
|
CPointSeries* NewPointSeries();
|
||
|
|
BOOL DeletePointSeries(CPointSeries* pPointSeries);
|
||
|
|
};
|
||
|
|
|
||
|
|
class CPointSeriesCreator
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CPointSeriesCreator();
|
||
|
|
~CPointSeriesCreator();
|
||
|
|
//Attributes
|
||
|
|
private:
|
||
|
|
CTypedPtrArray<CPtrArray,CPointSeriesMemory*> m_pointseriesarray;
|
||
|
|
//Operations
|
||
|
|
public:
|
||
|
|
CPointSeries* NewPointSeries();
|
||
|
|
void DeletePointSeries(CPointSeries* pPointSeries);
|
||
|
|
void DeletePointSeries(CTypedPtrArray<CPtrArray,CPointSeries*>& seriesarray);
|
||
|
|
};
|
||
|
|
|
||
|
|
extern "C" AFX_EXT_API CPointSeriesCreator* WINAPI AfxGetPointSeriesFactory();
|