📄 easexml.h
字号:
/*************************************************************************** easexml.h - description ------------------- begin : ? 2? 6 2005 copyright : (C) 2005 by LiuZhong email : easeliu@vip.sina.com ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef EASEXML_H#define EASEXML_H#include <stdio.h>#include <stdlib.h>#include <string.h>#include <string>#include <vector>using namespace std;#include "tinyxml.h"typedef pair<string,string> StringPair;typedef vector<StringPair> StringPairList;typedef vector<string> StringList;class EaseXml{private: string m_Xml; TiXmlDocument m_Doc;private: TiXmlHandle NavigateNode(string EleNames); int GetEleOffset(int Row,int Column);public: EaseXml(char* XmlStr=""); EaseXml(string XmlStr); ~EaseXml(); void SetXml(char* XmlStr); void SetXml(string XmlStr); string Xml(); TiXmlHandle Handle(); string GetRootEleName(); string GetEleValue(string EleNames); string GetEleValue(string EleNames,string ChildName,int Index=0); string GetEleAttrValue(string EleNames,string AttrName); string GetEleAttrValue(string EleNames,string ChildName,string AttrName,int Index=0); StringList GetEleValues(string EleNames,string ChildName); StringPair GetChildEleNameValue(string EleNames,int Index=0); StringPairList GetChildEleNameValues(string EleNames); string GetEleXml(string EleNames,int Index=0);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -