#include <llxmltree.h>


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.
| 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().


| const std::string & LLXmlTreeParser::tabs | ( | ) | [protected] |
Definition at line 542 of file llxmltree.cpp.
References LLXmlParser::getDepth(), i, and S32.
Referenced by characterData(), comment(), defaultData(), endCdataSection(), endElement(), processingInstruction(), startCdataSection(), startElement(), and unparsedEntityDecl().


| 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().

| 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().

| 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::processingInstruction | ( | const char * | target, | |
| const char * | data | |||
| ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 626 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| void LLXmlTreeParser::comment | ( | const char * | data | ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 634 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| void LLXmlTreeParser::startCdataSection | ( | ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 642 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| void LLXmlTreeParser::endCdataSection | ( | ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 650 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| void LLXmlTreeParser::defaultData | ( | const char * | s, | |
| int | len | |||
| ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 658 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| void LLXmlTreeParser::unparsedEntityDecl | ( | const char * | entity_name, | |
| const char * | base, | |||
| const char * | system_id, | |||
| const char * | public_id, | |||
| const char * | notation_name | |||
| ) | [protected, virtual] |
Reimplemented from LLXmlParser.
Definition at line 667 of file llxmltree.cpp.
References llendl, llinfos, mDump, and tabs().

| LLXmlTreeNode * LLXmlTreeParser::CreateXmlTreeNode | ( | const std::string & | name, | |
| LLXmlTreeNode * | parent | |||
| ) | [protected, virtual] |
Definition at line 590 of file llxmltree.cpp.
References mTree.
Referenced by startElement().

LLXmlTree* LLXmlTreeParser::mTree [protected] |
LLXmlTreeNode* LLXmlTreeParser::mRoot [protected] |
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] |
1.5.5