The strings given as parameters for the "add" and "update" methods that have a name with the postfix "_WOSD" (that means "WithOut String Duplication")(for example "addText_WOSD") will be free'd by the XMLNode class.
For example, it means that this is incorrect:
In opposition, this is correct:
Typically, you will never do:
... but rather:
('free(b)' is performed by the XMLNode class)
Functions | |
static XMLNode | XMLNode::createXMLTopNode_WOSD (XMLSTR lpszName, char isDeclaration=FALSE) |
Create the top node of an XMLNode structure. More... | |
XMLNode | XMLNode::addChild_WOSD (XMLSTR lpszName, char isDeclaration=FALSE, XMLElementPosition pos=-1) |
Add a new child node. More... | |
XMLAttribute * | XMLNode::addAttribute_WOSD (XMLSTR lpszName, XMLSTR lpszValue) |
Add a new attribute. More... | |
XMLCSTR | XMLNode::addText_WOSD (XMLSTR lpszValue, XMLElementPosition pos=-1) |
Add a new text content. More... | |
XMLClear * | XMLNode::addClear_WOSD (XMLSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, XMLElementPosition pos=-1) |
Add a new clear Tag. More... | |
XMLCSTR | XMLNode::updateName_WOSD (XMLSTR lpszName) |
change node's name More... | |
XMLAttribute * | XMLNode::updateAttribute_WOSD (XMLAttribute *newAttribute, XMLAttribute *oldAttribute) |
if the attribute to update is missing, a new one will be added More... | |
XMLAttribute * | XMLNode::updateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName=NULL, int i=0) |
if the attribute to update is missing, a new one will be added More... | |
XMLAttribute * | XMLNode::updateAttribute_WOSD (XMLSTR lpszNewValue, XMLSTR lpszNewName, XMLCSTR lpszOldName) |
set lpszNewName=NULL if you don't want to change the name of the attribute if the attribute to update is missing, a new one will be added More... | |
XMLCSTR | XMLNode::updateText_WOSD (XMLSTR lpszNewValue, int i=0) |
if the text to update is missing, a new one will be added More... | |
XMLCSTR | XMLNode::updateText_WOSD (XMLSTR lpszNewValue, XMLCSTR lpszOldValue) |
if the text to update is missing, a new one will be added More... | |
XMLClear * | XMLNode::updateClear_WOSD (XMLSTR lpszNewContent, int i=0) |
if the clearTag to update is missing, a new one will be added More... | |
XMLClear * | XMLNode::updateClear_WOSD (XMLClear *newP, XMLClear *oldP) |
if the clearTag to update is missing, a new one will be added More... | |
XMLClear * | XMLNode::updateClear_WOSD (XMLSTR lpszNewValue, XMLCSTR lpszOldValue) |
if the clearTag to update is missing, a new one will be added More... | |
XMLAttribute * XMLNode::addAttribute_WOSD | ( | XMLSTR | lpszName, |
XMLSTR | lpszValue | ||
) |
Add a new attribute.
Definition at line 2547 of file xmlParser.cpp.
References XMLNode::addAttribute_priv().
Referenced by XMLNode::updateAttribute_WOSD().
XMLNode XMLNode::addChild_WOSD | ( | XMLSTR | lpszName, |
char | isDeclaration = FALSE , |
||
XMLElementPosition | pos = -1 |
||
) |
Add a new child node.
Definition at line 2543 of file xmlParser.cpp.
References XMLNode::addChild_priv(), and XMLNode::isDeclaration().
XMLClear * XMLNode::addClear_WOSD | ( | XMLSTR | lpszValue, |
XMLCSTR | lpszOpen = NULL , |
||
XMLCSTR | lpszClose = NULL , |
||
XMLElementPosition | pos = -1 |
||
) |
Add a new clear Tag.
Definition at line 2555 of file xmlParser.cpp.
References XMLNode::addClear_priv().
Referenced by XMLNode::updateClear_WOSD().
XMLCSTR XMLNode::addText_WOSD | ( | XMLSTR | lpszValue, |
XMLElementPosition | pos = -1 |
||
) |
Add a new text content.
Definition at line 2551 of file xmlParser.cpp.
References XMLNode::addText_priv().
Referenced by XMLNode::updateText_WOSD().
Create the top node of an XMLNode structure.
Definition at line 1000 of file xmlParser.cpp.
References XMLNode::isDeclaration(), and XMLNode::XMLNode().
XMLAttribute * XMLNode::updateAttribute_WOSD | ( | XMLAttribute * | newAttribute, |
XMLAttribute * | oldAttribute | ||
) |
if the attribute to update is missing, a new one will be added
Definition at line 2226 of file xmlParser.cpp.
References XMLNode::addAttribute_WOSD(), XMLAttribute::lpszName, XMLAttribute::lpszValue, and XMLSTR.
Referenced by XMLNode::updateAttribute(), and XMLNode::updateAttribute_WOSD().
XMLAttribute * XMLNode::updateAttribute_WOSD | ( | XMLSTR | lpszNewValue, |
XMLSTR | lpszNewName = NULL , |
||
int | i = 0 |
||
) |
if the attribute to update is missing, a new one will be added
Definition at line 2211 of file xmlParser.cpp.
References XMLNode::addAttribute_WOSD(), and XMLNode::d.
XMLAttribute * XMLNode::updateAttribute_WOSD | ( | XMLSTR | lpszNewValue, |
XMLSTR | lpszNewName, | ||
XMLCSTR | lpszOldName | ||
) |
set lpszNewName=NULL if you don't want to change the name of the attribute if the attribute to update is missing, a new one will be added
Definition at line 2232 of file xmlParser.cpp.
References XMLNode::addAttribute_WOSD(), XMLNode::getAttribute(), stringDup(), and XMLNode::updateAttribute_WOSD().
if the clearTag to update is missing, a new one will be added
Definition at line 2306 of file xmlParser.cpp.
References XMLNode::addClear_WOSD(), and XMLNode::d.
Referenced by XMLNode::updateClear(), and XMLNode::updateClear_WOSD().
if the clearTag to update is missing, a new one will be added
Definition at line 2323 of file xmlParser.cpp.
References XMLClear::lpszValue, XMLNode::updateClear_WOSD(), and XMLSTR.
if the clearTag to update is missing, a new one will be added
Definition at line 2315 of file xmlParser.cpp.
References XMLNode::addClear_WOSD(), XMLNode::d, XMLNode::indexClear(), and XMLNode::updateClear_WOSD().
change node's name
Definition at line 967 of file xmlParser.cpp.
References XMLNode::d.
Referenced by XMLNode::updateName().
if the text to update is missing, a new one will be added
Definition at line 2266 of file xmlParser.cpp.
References XMLNode::addText_WOSD(), XMLNode::d, and XMLCSTR.
Referenced by XMLNode::updateText(), and XMLNode::updateText_WOSD().
if the text to update is missing, a new one will be added
Definition at line 2275 of file xmlParser.cpp.
References XMLNode::addText_WOSD(), XMLNode::d, XMLNode::indexText(), and XMLNode::updateText_WOSD().
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 |