Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
CXMLParser Class Referenceabstract

#include <XMLParser.h>

Public Member Functions

 CXMLParser (void)
 
int Parse (const char *iData, size_t iLength, bool iIsFinal=false)
 
virtual ~CXMLParser ()
 

Protected Member Functions

virtual void OnCharacters (const XML_Char *iCharacters, int iLength)=0
 
virtual void OnEndElement (const XML_Char *iElement)=0
 
virtual void OnStartElement (const XML_Char *iElement, const XML_Char **iAttributes)=0
 

Static Private Member Functions

static void CharacterDataHandler (void *iContext, const XML_Char *iData, int iLength)
 
static void EndElementHandler (void *iContext, const XML_Char *iElement)
 
static void StartElementHandler (void *iContext, const XML_Char *iElement, const XML_Char **iAttributes)
 

Private Attributes

XML_Parser mParser
 

Detailed Description

Definition at line 20 of file XMLParser.h.

Constructor & Destructor Documentation

◆ CXMLParser()

CXMLParser::CXMLParser ( void  )

◆ ~CXMLParser()

virtual CXMLParser::~CXMLParser ( )
virtual

Member Function Documentation

◆ CharacterDataHandler()

static void CXMLParser::CharacterDataHandler ( void *  iContext,
const XML_Char *  iData,
int  iLength 
)
inlinestaticprivate

Definition at line 43 of file XMLParser.h.

◆ EndElementHandler()

static void CXMLParser::EndElementHandler ( void *  iContext,
const XML_Char *  iElement 
)
inlinestaticprivate

Definition at line 38 of file XMLParser.h.

◆ OnCharacters()

virtual void CXMLParser::OnCharacters ( const XML_Char *  iCharacters,
int  iLength 
)
protectedpure virtual

◆ OnEndElement()

virtual void CXMLParser::OnEndElement ( const XML_Char *  iElement)
protectedpure virtual

◆ OnStartElement()

virtual void CXMLParser::OnStartElement ( const XML_Char *  iElement,
const XML_Char **  iAttributes 
)
protectedpure virtual

◆ Parse()

int CXMLParser::Parse ( const char *  iData,
size_t  iLength,
bool  iIsFinal = false 
)

◆ StartElementHandler()

static void CXMLParser::StartElementHandler ( void *  iContext,
const XML_Char *  iElement,
const XML_Char **  iAttributes 
)
inlinestaticprivate

Definition at line 33 of file XMLParser.h.

Member Data Documentation

◆ mParser

XML_Parser CXMLParser::mParser
private

Definition at line 31 of file XMLParser.h.


The documentation for this class was generated from the following file: