VCF::XMLParser Class Reference
#include <XMLParser.h>
Inheritance diagram for VCF::XMLParser:
List of all members.
|
Public Types |
| enum | XMLTagType {
TagCDATA = -3,
TagComment = '!',
TagSymbol = -1,
TagOpen = '<',
TagClose = '>',
TagEnd = '/',
TagEquals = '=',
TagQuote = '\"'
} |
Public Member Functions |
| | XMLParser () |
| virtual | ~XMLParser () |
| bool | nextNode () |
| | tries to parse and process the next node.
|
| void | parse (const String &xmlString) |
| | parses the XML data represented by the xmlString argument.
|
| void | parse (InputStream *stream) |
| Enumerator< XMLNode * > * | getParsedNodes () |
Public Attributes |
| VCF::Delegate | XMLParserDelegate |
| VCF::Delegate | NodeFound |
| VCF::Delegate | NodeCDATAFound |
Protected Member Functions |
| const VCFChar * | parseComments (const VCFChar *commentPtrStart) |
| void | parseEntity (const VCFChar *entityPtrStart, const VCFChar *entityPtrEnd) |
| const VCFChar * | parseNode (const VCFChar *nodePtrStart, const VCFChar *nodePtrEnd) |
| const VCFChar * | parseAttrs (const VCFChar *attrPtrStart, const VCFChar *attrPtrEnd) |
| void | clearNodes () |
| const VCFChar * | skipWhitespace (const VCFChar *start, const int &length) |
| const VCFChar * | skipTillWhitespace (const VCFChar *start, const int &length) |
| String | decodeText (const String &text) |
| bool | whiteSpace (const VCFChar &ch) |
Protected Attributes |
| const VCFChar * | tokenPtr_ |
| const VCFChar * | sourcePtr_ |
| const VCFChar * | xmlBufferStart_ |
| int32 | sourceSize_ |
| String | tokenString_ |
| bool | dtdStarted_ |
| std::map< String, String > | entityMap_ |
| XMLTagType | token_ |
| XMLNode * | currentNode_ |
| std::vector< XMLNode * > | parsedNodes_ |
EnumeratorContainer< std::vector<
XMLNode * >, XMLNode * > | parsedNodesContainer_ |
Member Enumeration Documentation
|
|
- Enumerator:
-
| TagCDATA |
|
| TagComment |
|
| TagSymbol |
|
| TagOpen |
|
| TagClose |
|
| TagEnd |
|
| TagEquals |
|
| TagQuote |
|
|
Constructor & Destructor Documentation
| VCF::XMLParser::XMLParser |
( |
|
) |
|
|
| virtual VCF::XMLParser::~XMLParser |
( |
|
) |
[virtual] |
|
Member Function Documentation
| void VCF::XMLParser::clearNodes |
( |
|
) |
[protected] |
|
| String VCF::XMLParser::decodeText |
( |
const String & |
text |
) |
[protected] |
|
| bool VCF::XMLParser::nextNode |
( |
|
) |
|
|
|
|
tries to parse and process the next node.
- Returns:
- bool true if successful, false if the parsing failed.
|
| void VCF::XMLParser::parse |
( |
const String & |
xmlString |
) |
|
|
|
|
parses the XML data represented by the xmlString argument.
- Parameters:
-
| String | the XML data to parse |
|
| const VCFChar* VCF::XMLParser::parseAttrs |
( |
const VCFChar * |
attrPtrStart, |
|
|
const VCFChar * |
attrPtrEnd |
|
) |
[protected] |
|
| const VCFChar* VCF::XMLParser::parseComments |
( |
const VCFChar * |
commentPtrStart |
) |
[protected] |
|
| void VCF::XMLParser::parseEntity |
( |
const VCFChar * |
entityPtrStart, |
|
|
const VCFChar * |
entityPtrEnd |
|
) |
[protected] |
|
| const VCFChar* VCF::XMLParser::parseNode |
( |
const VCFChar * |
nodePtrStart, |
|
|
const VCFChar * |
nodePtrEnd |
|
) |
[protected] |
|
| const VCFChar* VCF::XMLParser::skipTillWhitespace |
( |
const VCFChar * |
start, |
|
|
const int & |
length |
|
) |
[protected] |
|
| const VCFChar* VCF::XMLParser::skipWhitespace |
( |
const VCFChar * |
start, |
|
|
const int & |
length |
|
) |
[protected] |
|
| bool VCF::XMLParser::whiteSpace |
( |
const VCFChar & |
ch |
) |
[protected] |
|
Member Data Documentation
|
|
- Event Delegate:
- NodeFound this is fired whenever a new node is encountered during the parsing of the xml data
event class: XMLParserEvent
|
The documentation for this class was generated from the following file: