Function moveit_setup::uniqueInsert
Defined in File utilities.hpp
Function Documentation
-
tinyxml2::XMLElement *moveit_setup::uniqueInsert(tinyxml2::XMLDocument &doc, tinyxml2::XMLElement &element, const char *tag, const std::vector<XMLAttribute> &attributes = {}, const char *text = nullptr)
Insert a new XML element with a given tag, attributes, and text.
If a corresponding element already exists (and has required attribute values), it is just reused.
- Parameters:
doc – The XMLDocument, used for creating new elements
element – The tag inside of which the new tag should be inserted
tag – The name of the tag
attributes – Attribute name/value pairs to be created/overwritten
text – If not null, text value to insert inside the new tag
- Returns:
The new or existing element