LLXmlTreeParser Class Reference

#include <llxmltree.h>

Inheritance diagram for LLXmlTreeParser:

Inheritance graph
[legend]
Collaboration diagram for LLXmlTreeParser:

Collaboration graph
[legend]
List of all members.

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 LLXmlTreeNodeCreateXmlTreeNode (const std::string &name, LLXmlTreeNode *parent)

Protected Attributes

LLXmlTreemTree
LLXmlTreeNodemRoot
LLXmlTreeNodemCurrent
BOOL mDump
BOOL mKeepContents

Detailed Description

Definition at line 201 of file llxmltree.h.


Constructor & Destructor Documentation

LLXmlTreeParser::LLXmlTreeParser ( LLXmlTree tree  ) 

Definition at line 508 of file llxmltree.cpp.

LLXmlTreeParser::~LLXmlTreeParser (  )  [virtual]

Definition at line 516 of file llxmltree.cpp.


Member Function Documentation

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]

Reimplemented from LLXmlParser.

Definition at line 634 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().

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::endCdataSection (  )  [protected, virtual]

Reimplemented from LLXmlParser.

Definition at line 650 of file llxmltree.cpp.

References llendl, llinfos, mDump, 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().

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]

Reimplemented from LLXmlParser.

Definition at line 626 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::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]

Reimplemented from LLXmlParser.

Definition at line 667 of file llxmltree.cpp.

References llendl, llinfos, mDump, and tabs().


Member Data Documentation

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]

Definition at line 236 of file llxmltree.h.

Referenced by characterData(), and parseFile().

LLXmlTreeNode* LLXmlTreeParser::mRoot [protected]

Definition at line 233 of file llxmltree.h.

Referenced by parseFile(), and startElement().

LLXmlTree* LLXmlTreeParser::mTree [protected]

Definition at line 232 of file llxmltree.h.

Referenced by CreateXmlTreeNode().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:05 2010 for Second Life Viewer by  doxygen 1.4.7