Main MRPT website > C++ reference for MRPT 1.5.7
Functions
Position helper functions (use in conjunction with the update&add functions

Detailed Description

These are some useful functions when you want to insert a childNode, a text or a XMLClearTag in the middle (at a specified position) of a XMLNode tree already constructed.

The value returned by these methods is to be used as last parameter (parameter 'pos') of addChild, addText or addClear.

Collaboration diagram for Position helper functions (use in conjunction with the update&add functions:

Functions

XMLElementPosition XMLNode::positionOfText (int i=0) const
 
XMLElementPosition XMLNode::positionOfText (XMLCSTR lpszValue) const
 
XMLElementPosition XMLNode::positionOfClear (int i=0) const
 
XMLElementPosition XMLNode::positionOfClear (XMLCSTR lpszValue) const
 
XMLElementPosition XMLNode::positionOfClear (XMLClear *a) const
 
XMLElementPosition XMLNode::positionOfChildNode (int i=0) const
 
XMLElementPosition XMLNode::positionOfChildNode (XMLNode x) const
 
XMLElementPosition XMLNode::positionOfChildNode (XMLCSTR name, int i=0) const
 return the position of the ith childNode with the specified name if (name==NULL) return the position of the ith childNode More...
 

Function Documentation

◆ positionOfChildNode() [1/3]

XMLElementPosition XMLNode::positionOfChildNode ( int  i = 0) const

Definition at line 2409 of file xmlParser.cpp.

References XMLNode::d, eNodeChild, and XMLNode::findPosition().

Referenced by XMLNode::positionOfChildNode().

◆ positionOfChildNode() [2/3]

XMLElementPosition XMLNode::positionOfChildNode ( XMLNode  x) const

Definition at line 2413 of file xmlParser.cpp.

References XMLNode::d, eNodeChild, and XMLNode::findPosition().

◆ positionOfChildNode() [3/3]

XMLElementPosition XMLNode::positionOfChildNode ( XMLCSTR  name,
int  i = 0 
) const

return the position of the ith childNode with the specified name if (name==NULL) return the position of the ith childNode

Definition at line 2422 of file xmlParser.cpp.

References XMLNode::d, eNodeChild, XMLNode::findPosition(), XMLNode::getChildNode(), and XMLNode::positionOfChildNode().

◆ positionOfClear() [1/3]

XMLElementPosition XMLNode::positionOfClear ( int  i = 0) const

Definition at line 2408 of file xmlParser.cpp.

References XMLNode::d, eNodeClear, and XMLNode::findPosition().

Referenced by XMLNode::positionOfClear().

◆ positionOfClear() [2/3]

XMLElementPosition XMLNode::positionOfClear ( XMLCSTR  lpszValue) const

Definition at line 2411 of file xmlParser.cpp.

References XMLNode::indexClear(), and XMLNode::positionOfClear().

◆ positionOfClear() [3/3]

XMLElementPosition XMLNode::positionOfClear ( XMLClear a) const

Definition at line 2412 of file xmlParser.cpp.

References XMLNode::positionOfClear().

◆ positionOfText() [1/2]

XMLElementPosition XMLNode::positionOfText ( int  i = 0) const

Definition at line 2407 of file xmlParser.cpp.

References XMLNode::d, eNodeText, and XMLNode::findPosition().

Referenced by XMLNode::positionOfText().

◆ positionOfText() [2/2]

XMLElementPosition XMLNode::positionOfText ( XMLCSTR  lpszValue) const

Definition at line 2410 of file xmlParser.cpp.

References XMLNode::indexText(), and XMLNode::positionOfText().




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019