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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "Defines.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "mSysUtilsPF_global.h"
|
|
|
|
|
|
|
|
|
|
|
|
class iParameter;
|
|
|
|
|
|
class iDefineChart;
|
|
|
|
|
|
class iDefineOptIndex;
|
|
|
|
|
|
class M_SYSUTILS_PF_EXPORT pfChartHelper
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
// 获取对象,单例模式
|
|
|
|
|
|
static pfChartHelper* getInstance();
|
|
|
|
|
|
|
|
|
|
|
|
// 关闭消耗
|
|
|
|
|
|
static void release();
|
|
|
|
|
|
|
|
|
|
|
|
// Chart defines
|
|
|
|
|
|
bool loadChartDefines(QString sFile = "");
|
|
|
|
|
|
QVector<iDefineChart*>* getChartGroupPtrs();
|
|
|
|
|
|
iDefineChart* getChartDefine(QString sNameOrId);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
pfChartHelper();
|
|
|
|
|
|
~pfChartHelper();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
static pfChartHelper* m_pSysInstance;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
// 系统统一的命名载体
|
|
|
|
|
|
QVector<iDefineChart*> m_vecChartGroupPtrs;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define _pfHelper pfChartHelper::getInstance()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|