MRPT
1.9.9
|
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 More... | |
XMLNode | XMLNode::getChildNode (XMLCSTR name, int *i=nullptr) const |
with specific name (return an empty node if failing). More... | |
XMLNode | XMLNode::getChildNodeWithAttribute (XMLCSTR tagName, XMLCSTR attributeName, XMLCSTR attributeValue=nullptr, int *i=nullptr) const |
next child node with specific name (return an empty node if failing) More... | |
XMLNode | XMLNode::getChildNodeByPath (XMLSTR path, char createNodeIfMissing=0, XMLCHAR sep='/') |
name/attribute (return an empty node if failing) 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 More... | |
XMLCSTR | XMLNode::getAttribute (XMLCSTR name, int *i=nullptr) const |
content with specific name (return a nullptr if failing) More... | |
int | XMLNode::nAttribute () const |
next attribute content with specific name (return a nullptr if failing) 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, More... | |
int | XMLNode::nElement () const |
clear) of the current XMLNode. 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... | |
XMLNode XMLNode::deepCopy | ( | ) | const |
deep copy (duplicate/clone) a XMLNode
Definition at line 2791 of file xmlParser.cpp.
References XMLNode::d, XMLNode::emptyXMLNode, mrpt::system::os::memcpy(), stringDup(), and XMLCSTR.
|
static |
return XMLNode::emptyXMLNode;
Definition at line 3420 of file xmlParser.cpp.
References XMLNode::emptyXMLNode.
XMLNodeContents XMLNode::enumContents | ( | XMLElementPosition | i | ) | const |
enumerate all the different contents (attribute,child,text,
Definition at line 3315 of file xmlParser.cpp.
References XMLNode::d, eNodeAttribute, eNodeChild, eNodeClear, eNodeNULL, eNodeText, and XMLNode::nAttribute().
XMLAttribute XMLNode::getAttribute | ( | int | i = 0 | ) | const |
return ith attribute
Definition at line 3384 of file xmlParser.cpp.
References XMLNode::d, and XMLNode::emptyXMLAttribute.
Referenced by XMLNode::deleteAttribute(), XMLNode::getAttribute(), mrpt::db::CSimpleDatabase::loadFromXML(), and XMLNode::updateAttribute_WOSD().
return ith attribute
Definition at line 3307 of file xmlParser.cpp.
References XMLNode::d, and XMLNode::getAttribute().
content with specific name (return a nullptr if failing)
return
Definition at line 3273 of file xmlParser.cpp.
References XMLNode::d, XMLAttribute::lpszName, XMLAttribute::lpszValue, and xstricmp().
XMLCSTR XMLNode::getAttributeName | ( | int | i = 0 | ) | const |
XMLCSTR XMLNode::getAttributeValue | ( | int | i = 0 | ) | const |
XMLNode XMLNode::getChildNode | ( | int | i = 0 | ) | const |
return ith child node
Definition at line 3404 of file xmlParser.cpp.
References XMLNode::d, and XMLNode::emptyXMLNode.
Referenced by XMLNode::getChildNode(), XMLNode::getChildNodeByPath(), XMLNode::getChildNodeWithAttribute(), mrpt::obs::VelodyneCalibration::internal_loadFromXMLNode(), mrpt::db::CSimpleDatabase::loadFromXML(), XMLNode::parseString(), XMLNode::positionOfChildNode(), and XMLNode::writeToFile().
return ith child node
Definition at line 3130 of file xmlParser.cpp.
References XMLNode::d, XMLNode::emptyXMLNode, XMLNode::getChildNode(), and xstricmp().
with specific name (return an empty node if failing).
If i==-1, this returns the last XMLNode with the given name. return
Definition at line 3112 of file xmlParser.cpp.
References XMLNode::d, XMLNode::emptyXMLNode, and xstricmp().
XMLNode XMLNode::getChildNodeByPath | ( | XMLSTR | path, |
char | createNodeIfMissing = 0 , |
||
XMLCHAR | sep = '/' |
||
) |
name/attribute (return an empty node if failing)
return the first child node with specific path. WARNING: the value of the parameter "path" is destroyed!
Definition at line 3155 of file xmlParser.cpp.
References XMLNode::addChild(), XMLNode::emptyXMLNode, XMLNode::getChildNode(), XMLNode::isEmpty(), XMLCHAR, and xstrstr().
Referenced by XMLNode::getChildNodeByPath().
XMLNode XMLNode::getChildNodeByPath | ( | XMLCSTR | path, |
char | createNodeIfMissing = 0 , |
||
XMLCHAR | sep = '/' |
||
) |
return the first child node with specific path
Definition at line 3146 of file xmlParser.cpp.
References XMLNode::getChildNodeByPath(), stringDup(), and XMLSTR.
XMLNode XMLNode::getChildNodeWithAttribute | ( | XMLCSTR | tagName, |
XMLCSTR | attributeName, | ||
XMLCSTR | attributeValue = nullptr , |
||
int * | i = nullptr |
||
) | const |
next child node with specific name (return an empty node if failing)
return child node with specific
Definition at line 3234 of file xmlParser.cpp.
References XMLNode::emptyXMLNode, XMLNode::getChildNode(), XMLCSTR, and xstricmp().
XMLClear XMLNode::getClear | ( | int | i = 0 | ) | const |
return ith clear field (comments)
Definition at line 3379 of file xmlParser.cpp.
References XMLNode::d, and XMLNode::emptyXMLClear.
XMLCSTR XMLNode::getName | ( | ) | const |
name of the node
Definition at line 3349 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::parseString().
XMLNode XMLNode::getParentNode | ( | ) | const |
return the parent node
Definition at line 3409 of file xmlParser.cpp.
References XMLNode::d, XMLNode::emptyXMLNode, and XMLNode::XMLNode().
XMLCSTR XMLNode::getText | ( | int | i = 0 | ) | const |
return ith text field
Definition at line 3399 of file xmlParser.cpp.
References XMLNode::d.
Referenced by mrpt::obs::VelodyneCalibration::internal_loadFromXMLNode().
char XMLNode::isAttributeSet | ( | XMLCSTR | name | ) | const |
test if an attribute with a specific name is given
Definition at line 3291 of file xmlParser.cpp.
References XMLNode::d, FALSE, XMLAttribute::lpszName, TRUE, and xstricmp().
char XMLNode::isDeclaration | ( | ) | const |
is this node a declaration <? .... ?>
Definition at line 3414 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::addChild(), XMLNode::addChild_priv(), XMLNode::addChild_WOSD(), XMLNode::createXMLTopNode(), XMLNode::createXMLTopNode_WOSD(), and XMLNode::writeToFile().
char XMLNode::isEmpty | ( | ) | const |
is this node Empty?
Definition at line 3419 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::getChildNodeByPath(), mrpt::obs::VelodyneCalibration::internal_loadFromXMLNode(), mrpt::db::CSimpleDatabase::loadFromXML(), XMLNode::parseString(), and XMLNode::ParseXMLElement().
int XMLNode::nAttribute | ( | ) | const |
next attribute content with specific name (return a nullptr if failing)
nbr of attribute
Definition at line 3364 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::enumContents().
int XMLNode::nChildNode | ( | XMLCSTR | name | ) | const |
return the number of child node with specific name
Definition at line 3099 of file xmlParser.cpp.
References XMLNode::d, and xstricmp().
Referenced by mrpt::db::CSimpleDatabase::loadFromXML(), and XMLNode::parseString().
int XMLNode::nChildNode | ( | ) | const |
int XMLNode::nClear | ( | ) | const |
int XMLNode::nElement | ( | ) | const |
clear) of the current XMLNode.
The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement(); nbr of different contents for current node
Definition at line 3374 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::parseString().
int XMLNode::nText | ( | ) | const |
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |