IXmlUtils

IXmlUtils structure. More...

#include

Public Member Functions

virtual XmlNodeRef LoadXmlFromFile (const char *sFilename, bool bReuseStrings=false, bool bEnablePatching=true)=0
Load xml file, returns 0 if load failed.
virtual XmlNodeRef LoadXmlFromBuffer (const char *buffer, size_t size, bool bReuseStrings=false)=0
Load xml from memory buffer, returns 0 if load failed.
virtual const char * HashXml (XmlNodeRef node)=0
Create an MD5 hash of an XML file.
virtual IReadWriteXMLSink * GetIReadWriteXMLSink ()=0
Get an object that can read a xml into a IReadXMLSink and writes a xml from a IWriteXMLSource.
virtual IXmlSerializer * CreateXmlSerializer ()=0
Create XML Writer for ISerialize interface.
virtual IXmlParser * CreateXmlParser ()=0
virtual bool SaveBinaryXmlFile (const char *sFilename, XmlNodeRef root)=0
Create XML to file in the binary form.
virtual XmlNodeRef LoadBinaryXmlFile (const char *sFilename, bool bEnablePatching=true)=0
Read XML data from file in the binary form.
virtual bool EnableBinaryXmlLoading (bool bEnable)=0
virtual IXmlTableReader * CreateXmlTableReader ()=0
After use it must be released with call to Release method.
virtual void InitStatsXmlNodePool (uint32 nPoolSize)=0
Init xml stats nodes pool.
virtual XmlNodeRef CreateStatsXmlNode (const char *sNodeName)=0
Creates new xml node for statistics.
virtual void SetStatsOwnerThread (threadID threadId)=0
Set owner thread.
virtual void FlushStatsXmlNodePool ()=0
Free memory held on to by xml pool if empty.
virtual void SetXMLPatcher (XmlNodeRef *pPatcher)=0

Detailed Description

IXmlUtils structure.

XML Parser interface.

Member Function Documentation

◆ CreateXmlParser()

virtual IXmlParser* IXmlUtils::CreateXmlParser ( )
pure virtual

Create XML Parser.

Note
IXmlParser does not normally support recursive XML loading, all nodes loaded by this parser are invalidated on loading new file. This is a specialized interface for fast loading of many XMLs, After use it must be released with call to Release method.

◆ EnableBinaryXmlLoading()

virtual bool IXmlUtils::EnableBinaryXmlLoading ( bool bEnable)
pure virtual

Enable or disables checking for binary xml files.

Returns
Previous status.

◆ SetXMLPatcher()

virtual void IXmlUtils::SetXMLPatcher ( XmlNodeRef * pPatcher)
pure virtual

Sets the patch which is used to transform loaded XML files. The patch itself is encoded into XML. Set to NULL to clear an existing transform and disable further patching.