MCPcopy Create free account
hub / github.com/assimp/assimp / getNodeAttribute

Function getNodeAttribute

code/AssetLib/3MF/XmlSerializer.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool getNodeAttribute(const XmlNode &node, const std::string &attribute, std::string &value) {
96 pugi::xml_attribute objectAttribute = node.attribute(attribute.c_str());
97 if (!objectAttribute.empty()) {
98 value = objectAttribute.as_string();
99 return true;
100 }
101
102 return false;
103}
104
105bool getNodeAttribute(const XmlNode &node, const std::string &attribute, int &value) {
106 std::string strValue;

Callers 5

ImportXmlMethod · 0.85
ReadObjectMethod · 0.85
ImportTrianglesMethod · 0.85
ReadBaseMaterialsMethod · 0.85
readMaterialDefMethod · 0.85

Calls 3

as_stringMethod · 0.80
attributeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected