#include <llxmltree.h>
Inheritance diagram for LLXmlTreeParser:
Public Member Functions | |
LLXmlTreeParser (LLXmlTree *tree) | |
virtual | ~LLXmlTreeParser () |
BOOL | parseFile (const std::string &path, LLXmlTreeNode **root, BOOL keep_contents) |
Protected Member Functions | |
const std::string & | tabs () |
virtual void | startElement (const char *name, const char **attributes) |
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 *entity_name, const char *base, const char *system_id, const char *public_id, const char *notation_name) |
virtual LLXmlTreeNode * | CreateXmlTreeNode (const std::string &name, LLXmlTreeNode *parent) |
Protected Attributes | |
LLXmlTree * | mTree |
LLXmlTreeNode * | mRoot |
LLXmlTreeNode * | mCurrent |
BOOL | mDump |
BOOL | mKeepContents |
Definition at line 201 of file llxmltree.h.
LLXmlTreeParser::LLXmlTreeParser | ( | LLXmlTree * | tree | ) |
Definition at line 508 of file llxmltree.cpp.
LLXmlTreeParser::~LLXmlTreeParser | ( | ) | [virtual] |
Definition at line 516 of file llxmltree.cpp.
void LLXmlTreeParser::characterData | ( | const char * | s, | |
int | len | |||
) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 612 of file llxmltree.cpp.
References LLXmlTreeNode::appendContents(), llendl, llinfos, mCurrent, mDump, mKeepContents, and tabs().
void LLXmlTreeParser::comment | ( | const char * | data | ) | [protected, virtual] |
LLXmlTreeNode * LLXmlTreeParser::CreateXmlTreeNode | ( | const std::string & | name, | |
LLXmlTreeNode * | parent | |||
) | [protected, virtual] |
void LLXmlTreeParser::defaultData | ( | const char * | s, | |
int | len | |||
) | [protected, virtual] |
void LLXmlTreeParser::endCdataSection | ( | ) | [protected, virtual] |
void LLXmlTreeParser::endElement | ( | const char * | name | ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 596 of file llxmltree.cpp.
References LLXmlTreeNode::getParent(), llendl, llinfos, LLXmlTreeNode::mContents, mCurrent, mDump, LLStringBase< char >::removeCRLF(), tabs(), and LLStringBase< char >::trim().
BOOL LLXmlTreeParser::parseFile | ( | const std::string & | path, | |
LLXmlTreeNode ** | root, | |||
BOOL | keep_contents | |||
) |
Definition at line 520 of file llxmltree.cpp.
References llassert, mCurrent, mKeepContents, mRoot, NULL, and LLXmlParser::parseFile().
Referenced by LLXmlTree::parseFile().
void LLXmlTreeParser::processingInstruction | ( | const char * | target, | |
const char * | data | |||
) | [protected, virtual] |
void LLXmlTreeParser::startCdataSection | ( | ) | [protected, virtual] |
void LLXmlTreeParser::startElement | ( | const char * | name, | |
const char ** | attributes | |||
) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 554 of file llxmltree.cpp.
References LLXmlTreeNode::addAttribute(), LLXmlTreeNode::addChild(), CreateXmlTreeNode(), i, llassert, llendl, llinfos, mCurrent, mDump, mRoot, S32, and tabs().
const std::string & LLXmlTreeParser::tabs | ( | ) | [protected] |
Definition at line 542 of file llxmltree.cpp.
References LLXmlParser::getDepth(), i, s, and S32.
Referenced by characterData(), comment(), defaultData(), endCdataSection(), endElement(), processingInstruction(), startCdataSection(), startElement(), and unparsedEntityDecl().
void LLXmlTreeParser::unparsedEntityDecl | ( | const char * | entity_name, | |
const char * | base, | |||
const char * | system_id, | |||
const char * | public_id, | |||
const char * | notation_name | |||
) | [protected, virtual] |
LLXmlTreeNode* LLXmlTreeParser::mCurrent [protected] |
Definition at line 234 of file llxmltree.h.
Referenced by characterData(), endElement(), parseFile(), and startElement().
BOOL LLXmlTreeParser::mDump [protected] |
Definition at line 235 of file llxmltree.h.
Referenced by characterData(), comment(), defaultData(), endCdataSection(), endElement(), processingInstruction(), startCdataSection(), startElement(), and unparsedEntityDecl().
BOOL LLXmlTreeParser::mKeepContents [protected] |
LLXmlTreeNode* LLXmlTreeParser::mRoot [protected] |
LLXmlTree* LLXmlTreeParser::mTree [protected] |