ixmlparser.h

来自「brew平台下解析XML的」· C头文件 代码 · 共 49 行

H
49
字号

#ifndef IXmlParser_H
#define IXmlParser_H

#include "AEE.h"
#include "AEEShell.h"           // Shell interface definitions

#include "McbXML.h"

typedef struct _IXmlParser IXmlParser;


AEEINTERFACE(IXmlParser)
{
	DECLARE_IBASE(IXmlParser)

	boolean			(*ParseXml)		 (IXmlParser * po,const char * xml);

	McbXMLElement*  (*GetRootElement)    (IXmlParser * po);
	McbXMLResults	(*GetResults)		 (IXmlParser * po);
	
	void	(*Reset)	(IXmlParser * po);

	
};

#define IXMLPARSER_AddRef(p)                      AEEGETPVTBL(p,IXmlParser)->AddRef(p)
#define IXMLPARSER_Release(p)                     AEEGETPVTBL(p,IXmlParser)->Release(p)

#define IXMLPARSER_ParseXml(p,i)				  AEEGETPVTBL(p,IXmlParser)->ParseXml(p,i)
#define IXMLPARSER_GetRootElement(p)              AEEGETPVTBL(p,IXmlParser)->GetRootElement(p)
#define IXMLPARSER_GetResults(p)                  AEEGETPVTBL(p,IXmlParser)->GetResults(p)
#define IXMLPARSER_Reset(p)						  AEEGETPVTBL(p,IXmlParser)->Reset(p)

struct _IXmlParser {
	
	const AEEVTBL(IXmlParser) * pvt;

	uint32          m_nRefs;	
	IShell			*m_pIShell;
	IModule			*m_pIModule;


	McbXMLElement	* m_pRoot;
	McbXMLResults	m_Results;

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?