#include <dbobject.hpp>
Collaboration diagram for DBObjectSAXBuilder:
Definition at line 583 of file dbobject.hpp.
Public Methods | |
DBObjectSAXBuilder (XMLFlowContext *p_pContext, const DBOBJDefinitionNode *p_pDBOBJDefNode, DBOBJSetAction l_intBaseAction) | |
Constructor. Inits private data members. | |
~DBObjectSAXBuilder () | |
Destructor. Releases private data members. | |
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. Builds objects nodes and fields. | |
void | characters (const XMLCh *const chars, const unsigned int length) |
Receive notification of character data. Accumulates fields values. | |
void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
Receive notification of the end of an element. Attach nodes and fields to object tree. Lanches object process for ach completed object. | |
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) |
unsigned int | getObjectsCount () |
DBObjectNode * | popObject () |
Static Public Methods | |
void | buildDBObject (XMLFlowContext *p_pContext, XMLStreamProvider *p_pInput, const DBOBJDefinitionNode *p_pDBOBJDefNode, DBOBJSetAction l_intBaseAction) |
Launches input XML parse & mapping. //. | |
DBOBJSetAction | translateAction (const char *p_pszAction) |
Translation tring action to action constants. | |
char * | translateAction (DBOBJSetAction p_Action) |
Translation tring action to action constants. |
|
Constructor. Inits private data members.
Definition at line 850 of file dbobject.cpp. References DEBUG_CREATE. Referenced by buildDBObject(). |
|
Destructor. Releases private data members.
Definition at line 864 of file dbobject.cpp. References DEBUG_DEL, VAarray< DBObjectNode * >::empty(), VAarray< DBObjectNode * >::pop(), and releaseCharBuffer(). |
|
Launches input XML parse & mapping. //.
Definition at line 808 of file dbobject.cpp. References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DBObjectSAXBuilder(), DEBUG_IN, DEBUG_OUT, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, and WATCH_XML_FLOW_ERROR. |
|
Receive notification of character data. Accumulates fields values.
Definition at line 1098 of file dbobject.cpp. References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, concatCharBuffer(), DEBUG_IN, DEBUG_OUT, XMLFlowContext::getTranscoder(), ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, releaseCharBuffer(), trimCharBuffer(), WATCH_XML_FLOW_ERROR, and XSTR(). |
|
Definition at line 674 of file dbobject.hpp. |
|
Receive notification of the end of an element. Attach nodes and fields to object tree. Lanches object process for ach completed object.
Definition at line 1031 of file dbobject.cpp. References DBObjectNode::addChildNode(), DBObjectNode::addField(), CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, DEBUG_ECHO, DEBUG_IN, DEBUG_OUT, VAarray< DBObjectNode * >::empty(), DBObjectNode::getName(), XMLFlowContext::getTranscoder(), ON_XML_FLOW_ERROR_THROW, VAarray< DBObjectNode * >::pop(), PREP_CATCH_XML_FLOW_ERROR, VAarray< DBObjectNode * >::push(), releaseCharBuffer(), VAarray< DBObjectNode * >::top(), WATCH_XML_FLOW_ERROR, XMLPROCESSOR_MAX_TAG_SIZE, and XSTR(). |
|
Definition at line 676 of file dbobject.hpp. |
|
Definition at line 1180 of file dbobject.cpp. References VAarray< DBObjectNode * >::size(). Referenced by DBOBJSetStreamer::commitStream(). |
|
Definition at line 678 of file dbobject.hpp. |
|
Definition at line 1188 of file dbobject.cpp. References VAarray< DBObjectNode * >::bottom(), and VAarray< DBObjectNode * >::remove(). Referenced by DBOBJSetStreamer::commitStream(). |
|
Definition at line 677 of file dbobject.hpp. |
|
Definition at line 679 of file dbobject.hpp. |
|
Definition at line 680 of file dbobject.hpp. |
|
Definition at line 673 of file dbobject.hpp. |
|
|
Definition at line 675 of file dbobject.hpp. |
|
Translation tring action to action constants.
Definition at line 1157 of file dbobject.cpp. References copyCharBuffer(), DBOBJaction_Delete, DBOBJaction_Insert, DBOBJaction_None, DBOBJaction_Update, DBOBJECTNODE_ACTIONDELETE, DBOBJECTNODE_ACTIONINSERT, DBOBJECTNODE_ACTIONNONE, DBOBJECTNODE_ACTIONUPDATE, and DEBUG_FUNC. |
|
Translation tring action to action constants.
Definition at line 1136 of file dbobject.cpp. References DBOBJaction_Delete, DBOBJaction_Insert, DBOBJaction_None, DBOBJaction_Unspec, DBOBJaction_Update, DBOBJSetAction, and DEBUG_FUNC. Referenced by DBOBJSetStreamer::countObjectNodes(), and startElement(). |