MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetXMLVersionFromDoc

Function GetXMLVersionFromDoc

Source/Internal/levelxml.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void GetXMLVersionFromDoc(TiXmlDocument& doc, std::string& str) {
45 TiXmlHandle hDoc(&doc);
46 TiXmlDeclaration* decl = ((hDoc.FirstChild()).ToNode())->ToDeclaration();
47 str = decl->Version();
48}
49
50void HandleDetailMaps(std::vector<DetailMapInfo>& dmiv, const TiXmlElement* field) {
51 dmiv.clear();

Callers 1

ParseLevelXMLFunction · 0.85

Calls 4

ToNodeMethod · 0.80
ToDeclarationMethod · 0.45
FirstChildMethod · 0.45
VersionMethod · 0.45

Tested by

no test coverage detected