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.
nmWATI/Include/nmNum/nmXml/nmXmlHelper.h

42 lines
693 B
C++

#pragma once
#include "nmXmlData.h"
// 本类的目的通过单例实现对XML文件解析之后的存储
class NM_XML_EXPORT nmXmlHelper
{
public:
// 获取对象,单例模式
static nmXmlHelper* getInstance();
// 加载文件
// 如果文件为空,则自动指定
bool loadXmlDefines(QString sFile = "");
// 返回结果
vecNmXmlDatas* getVecNmXmlDataPtrs();
// 关闭消耗
static void release();
QString getLastError();
private:
nmXmlHelper();
~nmXmlHelper();
private:
private:
static nmXmlHelper* _helper;
vecNmXmlDatas m_vecNmXmlDatas;
QString m_sError;
};
#define _nmXmlHelper nmXmlHelper::getInstance()