iDynTree::XMLDocument class

Derived classes

class URDFDocument

Constructors, destructors, conversion operators

XMLDocument(XMLParserState& parserState) explicit
~XMLDocument() virtual

Public functions

auto rootElementForName(const std::string& name, const std::vector<std::string>& packageDirs) -> std::shared_ptr<XMLElement> virtual
Factory method to create the XML root element given for the specified name.
auto documentHasBeenParsed() -> bool virtual
auto root() const -> const std::shared_ptr<XMLElement>
auto description() const -> std::string

Protected functions

auto getParserState() -> XMLParserState&

Function documentation

std::shared_ptr<XMLElement> iDynTree::XMLDocument::rootElementForName(const std::string& name, const std::vector<std::string>& packageDirs) virtual

Factory method to create the XML root element given for the specified name.

Parameters
name name of the element to create
packageDirs
Returns a new parser element for the corresponding tag