MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / asString

Method asString

source/MaterialXCore/Element.cpp:623–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623string Element::asString() const
624{
625 string res = "<" + getCategory();
626 if (getName() != EMPTY_STRING)
627 {
628 res += " name=\"" + getName() + "\"";
629 }
630 for (const string& attrName : getAttributeNames())
631 {
632 res += " " + attrName + "=\"" + getAttribute(attrName) + "\"";
633 }
634 res += ">";
635 return res;
636}
637
638void Element::validateRequire(bool expression, bool& res, string* message, const string& errorDesc) const
639{

Callers 3

extendPathUpstreamMethod · 0.45
Traversal.cppFile · 0.45
prettyPrintFunction · 0.45

Calls 1

getAttributeFunction · 0.85

Tested by

no test coverage detected