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

SAXValuesHandler Class Reference

#include <valuesstreamer.hpp>

Collaboration diagram for SAXValuesHandler:

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 91 of file valuesstreamer.hpp.

Public Methods

 SAXValuesHandler (StreamerParams *p_pParameters, XMLFlowContext *p_pContext)
 Destructor.

 ~SAXValuesHandler ()
 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

SAXValuesHandler::SAXValuesHandler StreamerParams   p_pParameters,
XMLFlowContext   p_pContext
 

Destructor.

Definition at line 98 of file valuesstreamer.cpp.

References concatCharBuffer(), DEBUG_CREATE, XMLStreamer::getParamValue(), and importCharBuffer().

SAXValuesHandler::~SAXValuesHandler  
 

Destructor.

Definition at line 131 of file valuesstreamer.cpp.

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


Member Function Documentation

void SAXValuesHandler::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 150 of file valuesstreamer.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 SAXValuesHandler::endDocument   [inline]
 

Definition at line 162 of file valuesstreamer.hpp.

void SAXValuesHandler::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 211 of file valuesstreamer.cpp.

References XMLFlowContext::addParameter(), concatCharBuffer(), copyCharBuffer(), DEBUG_IN, DEBUG_OUT, VAarray< char * >::empty(), VAarray< char * >::getKey(), XMLFlowContext::getParameter(), VAarray< char * >::pop(), releaseCharBuffer(), and VAarray< char * >::size().

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

Definition at line 164 of file valuesstreamer.hpp.

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

Definition at line 166 of file valuesstreamer.hpp.

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

Definition at line 165 of file valuesstreamer.hpp.

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

Definition at line 167 of file valuesstreamer.hpp.

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

Definition at line 168 of file valuesstreamer.hpp.

void SAXValuesHandler::startDocument   [inline]
 

Definition at line 161 of file valuesstreamer.hpp.

void SAXValuesHandler::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 184 of file valuesstreamer.cpp.

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

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

Definition at line 163 of file valuesstreamer.hpp.


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