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.
45 lines
830 B
C++
45 lines
830 B
C++
#pragma once
|
|
|
|
#include "Defines.h"
|
|
#include "mSysUtilsCO2_global.h"
|
|
|
|
class co2PlotXmlDefine;
|
|
class co2PlotGroupXmlDefine;
|
|
|
|
class M_SYSUTILS_CO2_EXPORT co2ChartHelper
|
|
{
|
|
public:
|
|
|
|
// 获取对象,单例模式
|
|
static co2ChartHelper* getInstance();
|
|
|
|
// 关闭消耗
|
|
static void release();
|
|
|
|
// Chart defines
|
|
bool loadChartDefines(QString sFile = "");
|
|
|
|
QVector<co2PlotGroupXmlDefine*>* getPlotGroupXmlPtrs();
|
|
co2PlotGroupXmlDefine* getPlotGroupXmlDefine(QString sNameOrId);
|
|
co2PlotXmlDefine* getPlotXmlDefine(QString sName);
|
|
|
|
private:
|
|
|
|
co2ChartHelper();
|
|
~co2ChartHelper();
|
|
|
|
private:
|
|
|
|
static co2ChartHelper* m_pSysInstance;
|
|
|
|
private:
|
|
|
|
// 系统统一的命名载体
|
|
QVector<co2PlotGroupXmlDefine*> m_vecCO2ChartGroupXmlPtrs;
|
|
};
|
|
|
|
#define co2Sys co2ChartHelper::getInstance()
|
|
|
|
|
|
|