LLXmlParser Class Reference

#include <llxmlparser.h>

Inheritance diagram for LLXmlParser:

Inheritance graph
[legend]
List of all members.

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]

Detailed Description

Definition at line 42 of file llxmlparser.h.


Constructor & Destructor Documentation

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]

Definition at line 68 of file llxmlparser.cpp.

References mParser.


Member Function Documentation

virtual void LLXmlParser::characterData ( const char *  s,
int  len 
) [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 72 of file llxmlparser.h.

void LLXmlParser::characterDataHandler ( void userData,
const XML_Char *  s,
int  len 
) [static]

Definition at line 190 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::comment ( const char *  data  )  [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 78 of file llxmlparser.h.

void LLXmlParser::commentHandler ( void userData,
const XML_Char *  data 
) [static]

Definition at line 212 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::defaultData ( const char *  s,
int  len 
) [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 96 of file llxmlparser.h.

void LLXmlParser::defaultDataHandler ( void userData,
const XML_Char *  s,
int  len 
) [static]

Definition at line 248 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::endCdataSection (  )  [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 82 of file llxmlparser.h.

void LLXmlParser::endCdataSectionHandler ( void userData  )  [static]

Definition at line 227 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::endElement ( const char *  name  )  [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 69 of file llxmlparser.h.

void LLXmlParser::endElementHandler ( void userData,
const XML_Char *  name 
) [static]

Definition at line 179 of file llxmlparser.cpp.

Referenced by LLXmlParser().

S32 LLXmlParser::getCurrentColumnNumber (  ) 

Definition at line 159 of file llxmlparser.cpp.

References mParser.

S32 LLXmlParser::getCurrentLineNumber (  ) 

Definition at line 154 of file llxmlparser.cpp.

References mParser.

Referenced by LLXmlTree::parseFile().

S32 LLXmlParser::getDepth ( void   )  [inline]

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 
)

Definition at line 139 of file llxmlparser.cpp.

References mParser.

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]

Reimplemented in LLXmlTreeParser.

Definition at line 75 of file llxmlparser.h.

void LLXmlParser::processingInstructionHandler ( void userData,
const XML_Char *  target,
const XML_Char *  data 
) [static]

Definition at line 201 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::startCdataSection (  )  [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 80 of file llxmlparser.h.

void LLXmlParser::startCdataSectionHandler ( void userData  )  [static]

Definition at line 219 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::startElement ( const char *  name,
const char **  atts 
) [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 67 of file llxmlparser.h.

void LLXmlParser::startElementHandler ( void userData,
const XML_Char *  name,
const XML_Char **  atts 
) [static]

Definition at line 168 of file llxmlparser.cpp.

Referenced by LLXmlParser().

virtual void LLXmlParser::unparsedEntityDecl ( const char *  entityName,
const char *  base,
const char *  systemId,
const char *  publicId,
const char *  notationName 
) [inline, protected, virtual]

Reimplemented in LLXmlTreeParser.

Definition at line 102 of file llxmlparser.h.

void LLXmlParser::unparsedEntityDeclHandler ( void userData,
const XML_Char *  entityName,
const XML_Char *  base,
const XML_Char *  systemId,
const XML_Char *  publicId,
const XML_Char *  notationName 
) [static]

Definition at line 262 of file llxmlparser.cpp.

Referenced by LLXmlParser().


Member Data Documentation

char LLXmlParser::mAuxErrorString[1024] [protected]

Definition at line 133 of file llxmlparser.h.

Referenced by getErrorString(), LLXmlParser(), and parseFile().

int LLXmlParser::mDepth [protected]

Definition at line 132 of file llxmlparser.h.

Referenced by getDepth(), and parseFile().

XML_Parser LLXmlParser::mParser [protected]

Definition at line 131 of file llxmlparser.h.

Referenced by getCurrentColumnNumber(), getCurrentLineNumber(), getErrorString(), LLXmlParser(), parse(), parseFile(), and ~LLXmlParser().


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