MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / parseContentNodeVersion1

Method parseContentNodeVersion1

src/App/Metadata.cpp:956–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956void Metadata::parseContentNodeVersion1(const DOMElement* contentNode)
957{
958 auto children = contentNode->getChildNodes();
959 for (XMLSize_t i = 0; i < children->getLength(); ++i) {
960 auto child = dynamic_cast<const DOMElement*>(children->item(i));
961 if (child) {
962 auto tag = StrXUTF8(child->getTagName()).str;
963 _content.insert(std::make_pair(tag, Metadata(child, 1)));
964 }
965 }
966}
967
968Meta::Contact::Contact(std::string name, std::string email)
969 : name(std::move(name))

Callers

nothing calls this directly

Calls 5

StrXUTF8Class · 0.85
itemMethod · 0.80
MetadataClass · 0.70
getLengthMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected