#include <dbobject.hpp>
Inheritance diagram for DBObjectNode:
Definition at line 237 of file dbobject.hpp.
Public Methods | |
DBObjectNode (const DBOBJDefinitionNode *p_pDBOBJDefNode) | |
Constructor. Inits private data members. | |
~DBObjectNode () | |
Destructor. Releases private data members and deletes all fields and nodes descendants. | |
const char * | getName () const |
Returns node name. | |
DBOBJSetAction | getAction () const |
Return node's action constant. | |
DBObjectNode * | getParent () const |
Returns node's parent node. | |
const DBOBJDefinitionNode * | getDefinition () const |
Returns node's definition object. | |
void | setAction (DBOBJSetAction p_intAction) |
Sets node's acion constant. | |
void | setParent (DBObjectNode *p_DBOBJParentNode) |
Sets node's parent node. | |
void | setDefinition (const DBOBJDefinitionNode *p_pDBOBJDefNode) |
Sets node's definition node. | |
void | setValuable (XMLValuable *p_pValuableParent) |
Sets node's valuable object. | |
void | addChildNode (DBObjectNode *p_pChildNode) |
Appends a child node object to this node. | |
void | removeChildNode (unsigned int p_uiIndex, bool p_fDestroy=true) |
Removes a child node of this node. | |
void | removeChildNode (const char *p_pszName, unsigned int p_uiIndex=0, bool p_fDestroy=true) |
Removes a named child node of this node. | |
unsigned int | getChildNodesCount () const |
Returns the number of child nodes. | |
unsigned int | getChildNodesCount (const char *p_pszName) const |
Returns the number of child nodes with given name. | |
DBObjectNode * | getChildNode (unsigned int p_uiIndex) const |
Returns a child node. | |
DBObjectNode * | getChildNode (const char *p_pszName, unsigned int p_uiIndex=0) const |
Returns a child node. | |
DBObjectNode * | getCurrentChild () |
void | movePreviousChild () |
void | moveNextChild () |
void | moveFirstChild () |
void | moveLastChild () |
void | addField (DBObjectField *p_pField) |
Appends a field object to this node. | |
void | removeField (unsigned int p_uiIndex, bool p_fDestroy=true) |
Removes a field object from this node. | |
void | removeField (const char *p_pszName, bool p_fDestroy=true) |
Removes a field object from this node. | |
unsigned int | getFieldsCount () const |
Returns the number of fields objects. | |
DBObjectField * | getField (unsigned int p_uiIndex) const |
Returns a field. | |
DBObjectField * | getField (const char *p_pszName) const |
Returns a field. | |
DBObjectField * | getCurrentField () |
void | movePreviousField () |
void | moveNextField () |
void | moveFirstField () |
void | moveLastField () |
void | getXML (XMLStreamConsumer *p_pXMLBufOut) |
Returns the XML stream representating this object and its descendants. | |
DBObject * | selectSingleNode (const char *p_pszPath) |
Returns a node or a field given by the path. | |
XMLValuable * | getValuable () |
Returns valuable object. | |
char * | calculateRelValue (const char *p_pszExpr) |
int | getType () const |
Returns type of object. |
|
Constructor. Inits private data members.
Definition at line 288 of file dbobject.cpp. References DEBUG_CREATE, setAction(), and setDefinition(). |
|
Destructor. Releases private data members and deletes all fields and nodes descendants.
Definition at line 305 of file dbobject.cpp. References DEBUG_DEL, and releaseCharBuffer(). |
|
Appends a child node object to this node.
Definition at line 420 of file dbobject.cpp. References VAarray< DBObjectNode * >::add(), DEBUG_FUNC, getName(), and setParent(). Referenced by DBObjectSAXBuilder::endElement(). |
|
Appends a field object to this node.
Definition at line 553 of file dbobject.cpp. References VAarray< DBObjectField * >::add(), DEBUG_FUNC, DBObjectField::getName(), and DBObjectField::setParent(). Referenced by DBObjectSAXBuilder::endElement(), and DBObjectSAXBuilder::startElement(). |
|
Definition at line 766 of file dbobject.cpp. References XMLValuable::calculateValue(), getValuable(), XMLValuable::getValuer(), and XpathDBValuer::setRoot(). Referenced by DBOBJSetStreamer::buildEventStatement(), and DBObjectField::getValue(). |
|
Return node's action constant.
Definition at line 337 of file dbobject.cpp. References DBOBJSetAction, and DEBUG_FUNC. Referenced by DBOBJSetStreamer::countObjectNodes(), DBObjectField::getValue(), DBOBJSetStreamer::processNode(), and DBObjectSAXBuilder::startElement(). |
|
Returns a child node.
Definition at line 497 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::get(). |
|
Returns a child node.
Definition at line 488 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::get(). Referenced by DBOBJSetStreamer::countObjectNodes(), getXML(), and selectSingleNode(). |
|
Returns the number of child nodes with given name.
Definition at line 479 of file dbobject.cpp. References VAarray< DBObjectNode * >::count(), and DEBUG_FUNC. |
|
Returns the number of child nodes.
Definition at line 470 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::size(). Referenced by DBOBJSetStreamer::countObjectNodes(), and getXML(). |
|
Definition at line 506 of file dbobject.cpp. References VAarray< DBObjectNode * >::current(), and DEBUG_FUNC. Referenced by DBOBJSetStreamer::processNode(). |
|
Definition at line 627 of file dbobject.cpp. References VAarray< DBObjectField * >::current(), and DEBUG_FUNC. |
|
Returns node's definition object.
Definition at line 356 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBOBJSetStreamer::buildCHECKStatement(), DBOBJSetStreamer::buildDELETEStatement(), DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), DBOBJSetStreamer::buildWHEREclause(), DBOBJSetStreamer::processNode(), and DBObjectSAXBuilder::startElement(). |
|
Returns a field.
Definition at line 617 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::get(). |
|
Returns a field.
Definition at line 607 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::get(). Referenced by DBOBJSetStreamer::buildINSERTStatement(), DBOBJSetStreamer::buildUPDATEStatement(), DBOBJSetStreamer::buildWHEREclause(), getXML(), and selectSingleNode(). |
|
Returns the number of fields objects.
Definition at line 598 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::size(). Referenced by getXML(). |
|
Returns node name.
Definition at line 328 of file dbobject.cpp. References DEBUG_FUNC, and exportCharBuffer(). Referenced by addChildNode(), DBOBJSetStreamer::countObjectNodes(), DBObjectSAXBuilder::endElement(), DBOBJSetStreamer::sendNodeToDB(), and DBOBJSetStreamer::sendRecordToDB(). |
|
Returns node's parent node.
Definition at line 347 of file dbobject.cpp. References DEBUG_FUNC. |
|
Returns type of object.
Implements DBObject. Definition at line 318 of file dbobject.cpp. References DBOBJECTTYPE_NODE, and DEBUG_FUNC. |
|
Returns valuable object.
Definition at line 365 of file dbobject.cpp. References DEBUG_FUNC. Referenced by calculateRelValue(). |
|
Returns the XML stream representating this object and its descendants.
Definition at line 673 of file dbobject.cpp. References DBOBJaction_Delete, DBOBJaction_Insert, DBOBJaction_Update, DEBUG_FUNC, getChildNode(), getChildNodesCount(), getField(), getFieldsCount(), DBObjectField::getXML(), and DBObjectField::isAttribute(). Referenced by DBOBJSetStreamer::deStackObjects(). |
|
Definition at line 533 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::moveFirst(). Referenced by DBOBJSetStreamer::processNode(). |
|
Definition at line 654 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::moveFirst(). |
|
Definition at line 542 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::moveLast(). Referenced by DBOBJSetStreamer::processNode(). |
|
Definition at line 663 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::moveLast(). |
|
Definition at line 524 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::moveNext(). Referenced by DBOBJSetStreamer::processNode(). |
|
Definition at line 645 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::moveNext(). |
|
Definition at line 515 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectNode * >::movePrevious(). Referenced by DBOBJSetStreamer::processNode(). |
|
Definition at line 636 of file dbobject.cpp. References DEBUG_FUNC, and VAarray< DBObjectField * >::movePrevious(). |
|
Removes a named child node of this node.
Definition at line 451 of file dbobject.cpp. References DEBUG_FUNC, VAarray< DBObjectNode * >::get(), and setParent(). |
|
Removes a child node of this node.
Definition at line 432 of file dbobject.cpp. References DEBUG_FUNC, VAarray< DBObjectNode * >::remove(), and setParent(). |
|
Removes a field object from this node.
Definition at line 581 of file dbobject.cpp. References DEBUG_FUNC, VAarray< DBObjectField * >::remove(), and DBObjectField::setParent(). |
|
Removes a field object from this node.
Definition at line 564 of file dbobject.cpp. References DEBUG_FUNC, VAarray< DBObjectField * >::remove(), and DBObjectField::setParent(). |
|
Returns a node or a field given by the path.
Definition at line 714 of file dbobject.cpp. References copyCharBuffer(), DEBUG_ECHO, DEBUG_FUNC, getChildNode(), getField(), and releaseCharBuffer(). Referenced by XpathDBValuer::calculateExpression(), and DBOBJSetStreamer::sendRecordToDB(). |
|
Sets node's acion constant.
Definition at line 377 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBObjectNode(), and DBObjectSAXBuilder::startElement(). |
|
Sets node's definition node.
Definition at line 397 of file dbobject.cpp. References DEBUG_FUNC, DBOBJDefinitionNode::getName(), and importCharBuffer(). Referenced by DBObjectNode(). |
|
Sets node's parent node.
Definition at line 387 of file dbobject.cpp. References DEBUG_FUNC. Referenced by addChildNode(), and removeChildNode(). |
|
Sets node's valuable object.
Definition at line 408 of file dbobject.cpp. References DEBUG_FUNC. Referenced by DBOBJSetStreamer::processObject(). |