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

XMLFlowBuilder Class Reference

#include <xmlflowbuilder.hpp>

Inheritance diagram for XMLFlowBuilder:

Inheritance graph
[legend]
Collaboration diagram for XMLFlowBuilder:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents an user request. Inherits from SAX2 ContentHandler to parse input XML data and drive the processing.

Remarks:
object multiplicity : this class is instanciated for each user request.

object lifetime : the object lifetime is the request processing time.

Definition at line 60 of file xmlflowbuilder.hpp.

Public Methods

 XMLFlowBuilder (const XMLProcessor *p_pXMLProcessor, RootStreamNode *p_pStreamRoot, const char *p_pszActiveURI)
 Constructor. Initializes data members and populate valuers collection.

 ~XMLFlowBuilder ()
 Destructor. Destroys valuers collection and XML named buffers.

unsigned int getError ()
 Returns error number.

void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
void characters (const XMLCh *const chars, const unsigned int length)
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
void writeChars (const XMLByte *const toWrite, const unsigned int count, XMLFormatter *const formatter)


Constructor & Destructor Documentation

BEGIN_XDFLENGINE_NS XMLFlowBuilder::XMLFlowBuilder const XMLProcessor   p_pXMLProcessor,
RootStreamNode   p_pStreamRoot,
const char *    p_pszActiveURI
 

Constructor. Initializes data members and populate valuers collection.

Definition at line 55 of file xmlflowbuilder.cpp.

References DEBUG_CREATE, importCharBuffer(), and VAarray< XMLFlowNode * >::push().

XMLFlowBuilder::~XMLFlowBuilder  
 

Destructor. Destroys valuers collection and XML named buffers.

Definition at line 73 of file xmlflowbuilder.cpp.

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


Member Function Documentation

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

Reimplemented from SAX2Formatter.

Definition at line 220 of file xmlflowbuilder.cpp.

References ActiveStreamNode::appendChild(), SAX2Formatter::characters(), DEBUG_IN, DEBUG_OUT, VAarray< XMLFlowNode * >::push(), and VAarray< XMLFlowNode * >::top().

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

Reimplemented from SAX2Formatter.

Definition at line 250 of file xmlflowbuilder.cpp.

References ActiveStreamNode::appendChild(), DEBUG_ECHO, DEBUG_IN, DEBUG_OUT, SAX2Formatter::endElement(), XMLProcessor::getContext(), XMLFlowContext::getTranscoder(), VAarray< XMLFlowNode * >::pop(), VAarray< XMLFlowNode * >::push(), releaseCharBuffer(), VAarray< XMLFlowNode * >::top(), and XSTR().

unsigned int XMLFlowBuilder::getError  
 

Returns error number.

Returns:
(int) Error number

Definition at line 87 of file xmlflowbuilder.cpp.

References DEBUG_FUNC.

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

Reimplemented from SAX2Formatter.

Definition at line 99 of file xmlflowbuilder.cpp.

References VAarray< char * >::add(), ActiveStreamNode::appendChild(), DEBUG_ECHO, DEBUG_IN, DEBUG_OUT, VAarray< char * >::empty(), XMLProcessor::getContext(), XMLProcessor::getStreamerFactory(), XMLFlowContext::getTranscoder(), MAKE_XMLFLOW_EXCEPTION, ON_XML_FLOW_ERROR_DO, ON_XML_FLOW_ERROR_THROW, VAarray< char * >::pop(), VAarray< XMLFlowNode * >::pop(), PREP_CATCH_XML_FLOW_ERROR, VAarray< XMLFlowNode * >::push(), releaseCharBuffer(), VAarray< XMLFlowNode * >::size(), SAX2Formatter::startElement(), VAarray< XMLFlowNode * >::top(), and XSTR().

void XMLFlowBuilder::writeChars const XMLByte *const    toWrite,
const unsigned int    count,
XMLFormatter *const    formatter
 

Reimplemented from SAX2Formatter.

Definition at line 305 of file xmlflowbuilder.cpp.

References SAX2Formatter::setConsumer(), VAarray< XMLFlowNode * >::top(), and SAX2Formatter::writeChars().


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