Main MRPT website > C++ reference for MRPT 1.5.9
Functions
Navigate the XMLNode structure

Detailed Description

Collaboration diagram for Navigate the XMLNode structure:

Functions

XMLCSTR XMLNode::getName () const
 name of the node More...
 
XMLCSTR XMLNode::getText (int i=0) const
 return ith text field More...
 
int XMLNode::nText () const
 nbr of text field More...
 
XMLNode XMLNode::getParentNode () const
 return the parent node More...
 
XMLNode XMLNode::getChildNode (int i=0) const
 return ith child node More...
 
XMLNode XMLNode::getChildNode (XMLCSTR name, int i) const
 return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name. More...
 
XMLNode XMLNode::getChildNode (XMLCSTR name, int *i=NULL) const
 return next child node with specific name (return an empty node if failing) More...
 
XMLNode XMLNode::getChildNodeWithAttribute (XMLCSTR tagName, XMLCSTR attributeName, XMLCSTR attributeValue=NULL, int *i=NULL) const
 return child node with specific name/attribute (return an empty node if failing) More...
 
XMLNode XMLNode::getChildNodeByPath (XMLSTR path, char createNodeIfMissing=0, XMLCHAR sep='/')
 return the first child node with specific path. WARNING: the value of the parameter "path" is destroyed! More...
 
XMLNode XMLNode::getChildNodeByPath (XMLCSTR path, char createNodeIfMissing=0, XMLCHAR sep='/')
 return the first child node with specific path More...
 
int XMLNode::nChildNode (XMLCSTR name) const
 return the number of child node with specific name More...
 
int XMLNode::nChildNode () const
 nbr of child node More...
 
XMLAttribute XMLNode::getAttribute (int i=0) const
 return ith attribute More...
 
XMLCSTR XMLNode::getAttributeName (int i=0) const
 return ith attribute name More...
 
XMLCSTR XMLNode::getAttributeValue (int i=0) const
 return ith attribute value More...
 
char XMLNode::isAttributeSet (XMLCSTR name) const
 test if an attribute with a specific name is given More...
 
XMLCSTR XMLNode::getAttribute (XMLCSTR name, int i) const
 return ith attribute content with specific name (return a NULL if failing) More...
 
XMLCSTR XMLNode::getAttribute (XMLCSTR name, int *i=NULL) const
 return next attribute content with specific name (return a NULL if failing) More...
 
int XMLNode::nAttribute () const
 nbr of attribute More...
 
XMLClear XMLNode::getClear (int i=0) const
 return ith clear field (comments) More...
 
int XMLNode::nClear () const
 nbr of clear field More...
 
XMLNodeContents XMLNode::enumContents (XMLElementPosition i) const
 enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement(); More...
 
int XMLNode::nElement () const
 nbr of different contents for current node More...
 
char XMLNode::isEmpty () const
 is this node Empty? More...
 
char XMLNode::isDeclaration () const
 is this node a declaration <? .... ?> More...
 
XMLNode XMLNode::deepCopy () const
 deep copy (duplicate/clone) a XMLNode More...
 
static XMLNode XMLNode::emptyNode ()
 return XMLNode::emptyXMLNode; More...
 

Function Documentation

◆ deepCopy()

XMLNode XMLNode::deepCopy ( ) const

deep copy (duplicate/clone) a XMLNode

Definition at line 2118 of file xmlParser.cpp.

References XMLNode::d, XMLNode::emptyXMLNode, mrpt::system::os::memcpy(), stringDup(), and XMLCSTR.

◆ emptyNode()

XMLNode XMLNode::emptyNode ( )
static

return XMLNode::emptyXMLNode;

Definition at line 2539 of file xmlParser.cpp.

References XMLNode::emptyXMLNode.

◆ enumContents()

XMLNodeContents XMLNode::enumContents ( XMLElementPosition  i) const

enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement();

Definition at line 2501 of file xmlParser.cpp.

References XMLNode::d, eNodeAttribute, eNodeChild, eNodeClear, eNodeNULL, eNodeText, and XMLNode::nAttribute().

◆ getAttribute() [1/3]

XMLAttribute XMLNode::getAttribute ( int  i = 0) const

◆ getAttribute() [2/3]

XMLCSTR XMLNode::getAttribute ( XMLCSTR  name,
int  i 
) const

return ith attribute content with specific name (return a NULL if failing)

Definition at line 2493 of file xmlParser.cpp.

References XMLNode::d, and XMLNode::getAttribute().

◆ getAttribute() [3/3]

XMLCSTR XMLNode::getAttribute ( XMLCSTR  name,
int *  i = NULL 
) const

return next attribute content with specific name (return a NULL if failing)

Definition at line 2459 of file xmlParser.cpp.

References XMLNode::d, XMLAttribute::lpszName, XMLAttribute::lpszValue, and xstricmp().

◆ getAttributeName()

XMLCSTR XMLNode::getAttributeName ( int  i = 0) const

return ith attribute name

Definition at line 2532 of file xmlParser.cpp.

References XMLNode::d.

◆ getAttributeValue()

XMLCSTR XMLNode::getAttributeValue ( int  i = 0) const

return ith attribute value

Definition at line 2533 of file xmlParser.cpp.

References XMLNode::d.

◆ getChildNode() [1/3]

XMLNode XMLNode::getChildNode ( int  i = 0) const

◆ getChildNode() [2/3]

XMLNode XMLNode::getChildNode ( XMLCSTR  name,
int  i 
) const

return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name.

Definition at line 2360 of file xmlParser.cpp.

References XMLNode::d, XMLNode::emptyXMLNode, XMLNode::getChildNode(), and xstricmp().

◆ getChildNode() [3/3]

XMLNode XMLNode::getChildNode ( XMLCSTR  name,
int *  i = NULL 
) const

return next child node with specific name (return an empty node if failing)

Definition at line 2342 of file xmlParser.cpp.

References XMLNode::d, XMLNode::emptyXMLNode, and xstricmp().

◆ getChildNodeByPath() [1/2]

XMLNode XMLNode::getChildNodeByPath ( XMLSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path. WARNING: the value of the parameter "path" is destroyed!

Definition at line 2383 of file xmlParser.cpp.

References XMLNode::addChild(), XMLNode::emptyXMLNode, XMLNode::getChildNode(), XMLNode::isEmpty(), XMLCHAR, and xstrstr().

Referenced by XMLNode::getChildNodeByPath().

◆ getChildNodeByPath() [2/2]

XMLNode XMLNode::getChildNodeByPath ( XMLCSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path

Definition at line 2375 of file xmlParser.cpp.

References XMLNode::getChildNodeByPath(), stringDup(), and XMLSTR.

◆ getChildNodeWithAttribute()

XMLNode XMLNode::getChildNodeWithAttribute ( XMLCSTR  tagName,
XMLCSTR  attributeName,
XMLCSTR  attributeValue = NULL,
int *  i = NULL 
) const

return child node with specific name/attribute (return an empty node if failing)

Definition at line 2430 of file xmlParser.cpp.

References XMLNode::emptyXMLNode, XMLNode::getChildNode(), XMLCSTR, and xstricmp().

◆ getClear()

XMLClear XMLNode::getClear ( int  i = 0) const

return ith clear field (comments)

Definition at line 2530 of file xmlParser.cpp.

References XMLNode::d, and XMLNode::emptyXMLClear.

◆ getName()

XMLCSTR XMLNode::getName ( ) const

name of the node

Definition at line 2524 of file xmlParser.cpp.

References XMLNode::d.

Referenced by XMLNode::parseString().

◆ getParentNode()

XMLNode XMLNode::getParentNode ( ) const

return the parent node

Definition at line 2536 of file xmlParser.cpp.

References XMLNode::d, XMLNode::emptyXMLNode, and XMLNode::XMLNode().

◆ getText()

XMLCSTR XMLNode::getText ( int  i = 0) const

return ith text field

Definition at line 2534 of file xmlParser.cpp.

References XMLNode::d.

Referenced by mrpt::obs::VelodyneCalibration::internal_loadFromXMLNode().

◆ isAttributeSet()

char XMLNode::isAttributeSet ( XMLCSTR  name) const

test if an attribute with a specific name is given

Definition at line 2477 of file xmlParser.cpp.

References XMLNode::d, FALSE, XMLAttribute::lpszName, TRUE, and xstricmp().

◆ isDeclaration()

char XMLNode::isDeclaration ( ) const

◆ isEmpty()

char XMLNode::isEmpty ( ) const

◆ nAttribute()

int XMLNode::nAttribute ( ) const

nbr of attribute

Definition at line 2527 of file xmlParser.cpp.

References XMLNode::d.

Referenced by XMLNode::enumContents().

◆ nChildNode() [1/2]

int XMLNode::nChildNode ( XMLCSTR  name) const

return the number of child node with specific name

Definition at line 2329 of file xmlParser.cpp.

References XMLNode::d, and xstricmp().

Referenced by mrpt::utils::CSimpleDatabase::loadFromXML(), and XMLNode::parseString().

◆ nChildNode() [2/2]

int XMLNode::nChildNode ( ) const

nbr of child node

Definition at line 2526 of file xmlParser.cpp.

References XMLNode::d.

◆ nClear()

int XMLNode::nClear ( ) const

nbr of clear field

Definition at line 2528 of file xmlParser.cpp.

References XMLNode::d.

◆ nElement()

int XMLNode::nElement ( ) const

nbr of different contents for current node

Definition at line 2529 of file xmlParser.cpp.

References XMLNode::d.

Referenced by XMLNode::parseString().

◆ nText()

int XMLNode::nText ( ) const

nbr of text field

Definition at line 2525 of file xmlParser.cpp.

References XMLNode::d.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020