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 "GlobalDefine.h"
|
|
|
|
|
#include "tinyxml.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//tinyxml<6D><6C>װ<EFBFBD><D7B0>
|
|
|
|
|
|
|
|
|
|
//<2F>Զ<EFBFBD><D4B6><EFBFBD>XML <20><><EFBFBD><EFBFBD>
|
|
|
|
|
class CMyXmlItem
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void AddXmlItem(CMyXmlItem &XmlItem){m_XmlItemVec.push_back(XmlItem);};
|
|
|
|
|
public:
|
|
|
|
|
CString m_XmlItemName;
|
|
|
|
|
CString m_XmlItemAttributeName;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
CString m_XmlItemAttributeVal;//<2F><><EFBFBD><EFBFBD>ֵ
|
|
|
|
|
vector<CMyXmlItem> m_XmlItemVec;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CMyXmlMgr
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CMyXmlMgr(void);
|
|
|
|
|
~CMyXmlMgr(void);
|
|
|
|
|
void SaveXmlItemToFile(CString FilePath,CMyXmlItem &XmlItem);
|
|
|
|
|
bool ReadXmlItemFromFile(CString FilePath,CMyXmlItem &XmlItem);
|
|
|
|
|
private:
|
|
|
|
|
void SaveXmlItem(TiXmlElement *RootElement,CMyXmlItem &XmlItem);
|
|
|
|
|
void ReadXmlItem(TiXmlElement *RootElement,CMyXmlItem &XmlItem);
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
};
|