#include <llxmlparser.h>
Inheritance diagram for LLXmlParser:
Public Member Functions | |
LLXmlParser () | |
virtual | ~LLXmlParser () |
BOOL | parseFile (const std::string &path) |
S32 | parse (const char *buf, int len, int isFinal) |
const char * | getErrorString () |
S32 | getCurrentLineNumber () |
S32 | getCurrentColumnNumber () |
S32 | getDepth () |
Static Public Member Functions | |
static void | startElementHandler (void *userData, const XML_Char *name, const XML_Char **atts) |
static void | endElementHandler (void *userData, const XML_Char *name) |
static void | characterDataHandler (void *userData, const XML_Char *s, int len) |
static void | processingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) |
static void | commentHandler (void *userData, const XML_Char *data) |
static void | startCdataSectionHandler (void *userData) |
static void | endCdataSectionHandler (void *userData) |
static void | defaultDataHandler (void *userData, const XML_Char *s, int len) |
static void | unparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) |
Protected Member Functions | |
virtual void | startElement (const char *name, const char **atts) |
virtual void | endElement (const char *name) |
virtual void | characterData (const char *s, int len) |
virtual void | processingInstruction (const char *target, const char *data) |
virtual void | comment (const char *data) |
virtual void | startCdataSection () |
virtual void | endCdataSection () |
virtual void | defaultData (const char *s, int len) |
virtual void | unparsedEntityDecl (const char *entityName, const char *base, const char *systemId, const char *publicId, const char *notationName) |
Protected Attributes | |
XML_Parser | mParser |
int | mDepth |
char | mAuxErrorString [1024] |
Definition at line 42 of file llxmlparser.h.
LLXmlParser::LLXmlParser | ( | ) |
Definition at line 43 of file llxmlparser.cpp.
References characterDataHandler(), commentHandler(), defaultDataHandler(), endCdataSectionHandler(), endElementHandler(), mAuxErrorString, mParser, NULL, processingInstructionHandler(), startCdataSectionHandler(), startElementHandler(), and unparsedEntityDeclHandler().
LLXmlParser::~LLXmlParser | ( | ) | [virtual] |
virtual void LLXmlParser::characterData | ( | const char * | s, | |
int | len | |||
) | [inline, protected, virtual] |
virtual void LLXmlParser::comment | ( | const char * | data | ) | [inline, protected, virtual] |
virtual void LLXmlParser::defaultData | ( | const char * | s, | |
int | len | |||
) | [inline, protected, virtual] |
virtual void LLXmlParser::endCdataSection | ( | ) | [inline, protected, virtual] |
virtual void LLXmlParser::endElement | ( | const char * | name | ) | [inline, protected, virtual] |
S32 LLXmlParser::getCurrentColumnNumber | ( | ) |
S32 LLXmlParser::getCurrentLineNumber | ( | ) |
Definition at line 154 of file llxmlparser.cpp.
References mParser.
Referenced by LLXmlTree::parseFile().
Definition at line 62 of file llxmlparser.h.
References mDepth.
Referenced by LLXmlTreeParser::tabs().
const char * LLXmlParser::getErrorString | ( | ) |
Definition at line 144 of file llxmlparser.cpp.
References mAuxErrorString, and mParser.
Referenced by LLXmlTree::parseFile().
S32 LLXmlParser::parse | ( | const char * | buf, | |
int | len, | |||
int | isFinal | |||
) |
BOOL LLXmlParser::parseFile | ( | const std::string & | path | ) |
Definition at line 74 of file llxmlparser.cpp.
References FALSE, LLFile::fopen(), llassert, llendl, llwarns, mAuxErrorString, mDepth, mParser, S32, and TRUE.
Referenced by LLXmlTreeParser::parseFile().
virtual void LLXmlParser::processingInstruction | ( | const char * | target, | |
const char * | data | |||
) | [inline, protected, virtual] |
virtual void LLXmlParser::startCdataSection | ( | ) | [inline, protected, virtual] |
virtual void LLXmlParser::startElement | ( | const char * | name, | |
const char ** | atts | |||
) | [inline, protected, virtual] |
virtual void LLXmlParser::unparsedEntityDecl | ( | const char * | entityName, | |
const char * | base, | |||
const char * | systemId, | |||
const char * | publicId, | |||
const char * | notationName | |||
) | [inline, protected, virtual] |
char LLXmlParser::mAuxErrorString[1024] [protected] |
Definition at line 133 of file llxmlparser.h.
Referenced by getErrorString(), LLXmlParser(), and parseFile().
int LLXmlParser::mDepth [protected] |
XML_Parser LLXmlParser::mParser [protected] |
Definition at line 131 of file llxmlparser.h.
Referenced by getCurrentColumnNumber(), getCurrentLineNumber(), getErrorString(), LLXmlParser(), parse(), parseFile(), and ~LLXmlParser().