engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IFastXmlCallback类 参考abstract

Create your own class that implements the IFastXmlCallback interface to process the XML elements as they are loaded by FFastXml::ParseXmlFile(). 更多...

#include <FastXml.h>

Public 成员函数

virtual bool ProcessAttribute (const TCHAR *AttributeName, const TCHAR *AttributeValue)=0
 Called when an XML attribute is encountered for the current scope's element. 更多...
 
virtual bool ProcessClose (const TCHAR *Element)=0
 Called when an element's scope ends in the XML file 更多...
 
virtual bool ProcessComment (const TCHAR *Comment)=0
 Called when a comment is encountered. 更多...
 
virtual bool ProcessElement (const TCHAR *ElementName, const TCHAR *ElementData, int32 XmlFileLineNumber)=0
 Called when a new XML element is encountered, starting a new scope. 更多...
 
virtual bool ProcessXmlDeclaration (const TCHAR *ElementData, int32 XmlFileLineNumber)=0
 Called after the XML's header is parsed. 更多...
 

详细描述

Create your own class that implements the IFastXmlCallback interface to process the XML elements as they are loaded by FFastXml::ParseXmlFile().

You'll receive a ProcessElement() call for every XML element that is encountered, along with a corresponding ProcessClose() when that element's scope has ended. ProcessAttribute() will be called for any attributes found within the scope of the current element.

成员函数说明

◆ ProcessAttribute()

virtual bool IFastXmlCallback::ProcessAttribute ( const TCHAR *  AttributeName,
const TCHAR *  AttributeValue 
)
pure virtual

Called when an XML attribute is encountered for the current scope's element.

参数
AttributeNameThe name of the attribute
AttributeValueThe value of the attribute
返回
You should return true to continue processing the file, or false to stop processing immediately.

◆ ProcessClose()

virtual bool IFastXmlCallback::ProcessClose ( const TCHAR *  Element)
pure virtual

Called when an element's scope ends in the XML file

参数
ElementNameName of the element whose scope closed
返回
You should return true to continue processing the file, or false to stop processing immediately.

◆ ProcessComment()

virtual bool IFastXmlCallback::ProcessComment ( const TCHAR *  Comment)
pure virtual

Called when a comment is encountered.

This can happen pretty much anywhere in the file.

参数
CommentThe comment text

◆ ProcessElement()

virtual bool IFastXmlCallback::ProcessElement ( const TCHAR *  ElementName,
const TCHAR *  ElementData,
int32  XmlFileLineNumber 
)
pure virtual

Called when a new XML element is encountered, starting a new scope.

You'll receive a call to ProcessClose() when this element's scope has ended.

参数
ElementNameThe name of the element
ElementDataOptional data for this element, nullptr if none
XmlFileLineNumberThe line number in the XML file we're on
返回
You should return true to continue processing the file, or false to stop processing immediately.

◆ ProcessXmlDeclaration()

virtual bool IFastXmlCallback::ProcessXmlDeclaration ( const TCHAR *  ElementData,
int32  XmlFileLineNumber 
)
pure virtual

Called after the XML's header is parsed.

This is usually the first call that you'll get back.

参数
ElementDataOptional data for this element, nullptr if none
XmlFileLineNumberLine number in the XML file we're on
返回
You should return true to continue processing the file, or false to stop processing immediately.

该类的文档由以下文件生成: