MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / copyNodes

Method copyNodes

libs/xmlutil/Document.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void Document::copyNodes(const NodeList& nodeList)
96{
97 std::lock_guard<std::mutex> lock(_lock);
98
99 if (!isValid()) {
100 return; // is not Valid, place an assertion here?
101 }
102
103 // Copy the child nodes one by one
104 for (auto node: nodeList) {
105 _xmlDoc.document_element().append_copy(node.getNodePtr());
106 }
107}
108
109bool Document::isValid() const
110{

Callers 2

TEST_FFunction · 0.80
exportToFileMethod · 0.80

Calls 4

isValidFunction · 0.85
append_copyMethod · 0.80
document_elementMethod · 0.80
getNodePtrMethod · 0.80

Tested by

no test coverage detected