Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SAXLangHandler Class Reference

#include <langloadstreamer.hpp>

Collaboration diagram for SAXLangHandler:

Collaboration graph
[legend]
List of all members.

Detailed Description

This SAX handler extracts values from an XML stream and generates corresponding named values.

Definition at line 107 of file langloadstreamer.hpp.

Public Methods

 SAXLangHandler (StreamerParams *p_pParameters, XMLFlowContext *p_pContext, const LangLoadStreamerFactory *p_pParent)
 Destructor.

 ~SAXLangHandler ()
 Destructor.

void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
 Receive notification of the beginning of an element.

void characters (const XMLCh *const chars, const unsigned int length)
 Receive notification of character data.

void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 Receive notification of the end of an element.

void startDocument ()
void endDocument ()
void startPrefixMapping (const XMLCh *const prefix, const XMLCh *const uri)
void endPrefixMapping (const XMLCh *const prefix)
void processingInstruction (const XMLCh *const target, const XMLCh *const data)
void ignorableWhitespace (const XMLCh *const chars, const unsigned int length)
void setDocumentLocator (const Locator *const locator)
void skippedEntity (const XMLCh *const name)


Constructor & Destructor Documentation

SAXLangHandler::SAXLangHandler StreamerParams   p_pParameters,
XMLFlowContext   p_pContext,
const LangLoadStreamerFactory   p_pParent
 

Destructor.

Definition at line 182 of file langloadstreamer.cpp.

References DEBUG_CREATE.

SAXLangHandler::~SAXLangHandler  
 

Destructor.

Definition at line 197 of file langloadstreamer.cpp.

References DEBUG_DEL, VAarray< char * >::empty(), VAarray< char * >::pop(), and releaseCharBuffer().


Member Function Documentation

void SAXLangHandler::characters const XMLCh *const    chars,
const unsigned int    length
 

Receive notification of character data.

Parameters:
chars The characters from the XML document.
length The number of characters to read from the array.
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.

Definition at line 212 of file langloadstreamer.cpp.

References VAarray< char * >::add(), concatCharBuffer(), copyCharBuffer(), DEBUG_IN, DEBUG_OUT, VAarray< char * >::empty(), VAarray< char * >::getKey(), XMLFlowContext::getTranscoder(), VAarray< char * >::pop(), releaseCharBuffer(), VAarray< char * >::size(), VAarray< char * >::top(), trimCharBuffer(), and XSTR().

void SAXLangHandler::endDocument   [inline]
 

Definition at line 176 of file langloadstreamer.hpp.

void SAXLangHandler::endElement const XMLCh *const    uri,
const XMLCh *const    localname,
const XMLCh *const    qname
 

Receive notification of the end of an element.

Parameters:
uri The URI of the asscioated namespace for this element
localname The local part of the element name
qname The QName of this element
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.

Definition at line 282 of file langloadstreamer.cpp.

References copyCharBuffer(), DEBUG_IN, DEBUG_OUT, VAarray< char * >::empty(), VAarray< char * >::getKey(), VAarray< char * >::pop(), releaseCharBuffer(), LangLoadStreamerFactory::setDictionnaryEntry(), and VAarray< char * >::size().

void SAXLangHandler::endPrefixMapping const XMLCh *const    prefix [inline]
 

Definition at line 178 of file langloadstreamer.hpp.

void SAXLangHandler::ignorableWhitespace const XMLCh *const    chars,
const unsigned int    length
[inline]
 

Definition at line 180 of file langloadstreamer.hpp.

void SAXLangHandler::processingInstruction const XMLCh *const    target,
const XMLCh *const    data
[inline]
 

Definition at line 179 of file langloadstreamer.hpp.

void SAXLangHandler::setDocumentLocator const Locator *const    locator [inline]
 

Definition at line 181 of file langloadstreamer.hpp.

void SAXLangHandler::skippedEntity const XMLCh *const    name [inline]
 

Definition at line 182 of file langloadstreamer.hpp.

void SAXLangHandler::startDocument   [inline]
 

Definition at line 175 of file langloadstreamer.hpp.

void SAXLangHandler::startElement const XMLCh *const    uri,
const XMLCh *const    localname,
const XMLCh *const    qname,
const Attributes &    attrs
 

Receive notification of the beginning of an element.

Parameters:
uri The URI of the asscioated namespace for this element
localname The local part of the element name
qname The QName of this element
attrs The attributes attached to the element, if any.
Exceptions:
SAXException Any SAX exception, possibly wrapping another exception.

Definition at line 249 of file langloadstreamer.cpp.

References VAarray< char * >::add(), concatCharBuffer(), copyCharBuffer(), DEBUG_IN, DEBUG_OUT, VAarray< char * >::empty(), VAarray< char * >::getKey(), XMLFlowContext::getTranscoder(), importCharBuffer(), releaseCharBuffer(), VAarray< char * >::size(), XMLPROCESSOR_MAX_TAG_SIZE, and XSTR().

void SAXLangHandler::startPrefixMapping const XMLCh *const    prefix,
const XMLCh *const    uri
[inline]
 

Definition at line 177 of file langloadstreamer.hpp.


The documentation for this class was generated from the following files:
Generated on Sat Oct 4 13:24:41 2003 for XDFLengine by doxygen1.3-rc2