Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::XMLParser Class Reference

#include <XMLParser.h>

Inheritance diagram for VCF::XMLParser:

VCF::ObjectWithCallbacks VCF::Object 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 VCFCharparseComments (const VCFChar *commentPtrStart)
void parseEntity (const VCFChar *entityPtrStart, const VCFChar *entityPtrEnd)
const VCFCharparseNode (const VCFChar *nodePtrStart, const VCFChar *nodePtrEnd)
const VCFCharparseAttrs (const VCFChar *attrPtrStart, const VCFChar *attrPtrEnd)
void clearNodes ()
const VCFCharskipWhitespace (const VCFChar *start, const int &length)
const VCFCharskipTillWhitespace (const VCFChar *start, const int &length)
String decodeText (const String &text)
bool whiteSpace (const VCFChar &ch)

Protected Attributes

const VCFChartokenPtr_
const VCFCharsourcePtr_
const VCFCharxmlBufferStart_
int32 sourceSize_
String tokenString_
bool dtdStarted_
std::map< String, StringentityMap_
XMLTagType token_
XMLNodecurrentNode_
std::vector< XMLNode * > parsedNodes_
EnumeratorContainer< std::vector<
XMLNode * >, XMLNode * > 
parsedNodesContainer_

Member Enumeration Documentation

enum VCF::XMLParser::XMLTagType
 

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]
 

Enumerator<XMLNode*>* VCF::XMLParser::getParsedNodes  ) 
 

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 InputStream stream  ) 
 

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

XMLNode* VCF::XMLParser::currentNode_ [protected]
 

bool VCF::XMLParser::dtdStarted_ [protected]
 

std::map<String,String> VCF::XMLParser::entityMap_ [protected]
 

VCF::Delegate VCF::XMLParser::NodeCDATAFound
 

VCF::Delegate VCF::XMLParser::NodeFound
 

std::vector<XMLNode*> VCF::XMLParser::parsedNodes_ [protected]
 

EnumeratorContainer<std::vector<XMLNode*>,XMLNode*> VCF::XMLParser::parsedNodesContainer_ [protected]
 

const VCFChar* VCF::XMLParser::sourcePtr_ [protected]
 

int32 VCF::XMLParser::sourceSize_ [protected]
 

XMLTagType VCF::XMLParser::token_ [protected]
 

const VCFChar* VCF::XMLParser::tokenPtr_ [protected]
 

String VCF::XMLParser::tokenString_ [protected]
 

const VCFChar* VCF::XMLParser::xmlBufferStart_ [protected]
 

VCF::Delegate VCF::XMLParser::XMLParserDelegate
 

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:
   Comments or Suggestions?    License Information