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.
34 lines
606 B
C++
34 lines
606 B
C++
#pragma once
|
|
|
|
#include "Defines.h"
|
|
#include "iDataPool_global.h"
|
|
|
|
class ZxDataObject;
|
|
|
|
// 数据模型池(对象/组件/模块管理)
|
|
// 该类为单例,后续可以逐步添加
|
|
class I_DATAPOOL_EXPORT ZxDataPool
|
|
{
|
|
public:
|
|
|
|
// 单例模式
|
|
static ZxDataPool* getInstance();
|
|
// 关闭
|
|
static void release();
|
|
|
|
// 对象模型函数
|
|
void appendObj(ZxDataObject* p); //添加进入池
|
|
bool isObjExists(ZxDataObject* p); //是否存在
|
|
|
|
public:
|
|
|
|
ZxDataPool();
|
|
~ZxDataPool();
|
|
|
|
protected:
|
|
|
|
static ZxDataPool* _dataPoolInstance;
|
|
|
|
VecDataObjects m_vecObjs;
|
|
};
|