MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / nameElement_

Function nameElement_

src/serializers/SvgSerializer.cpp:2262–2269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2260
2261namespace {
2262 std::string nameElement_(const std::vector<std::pair<std::string, std::string> >& attrs) {
2263 std::ostringstream oss;
2264for (auto& a : attrs) {
2265 // @todo while we're at it might as well implement escaping
2266 oss << a.first << "=\"" << a.second << "\" ";
2267}
2268return oss.str();
2269 }
2270}
2271
2272std::string SvgSerializer::nameElement(const IfcUtil::IfcBaseEntity* storey, const IfcGeom::Element* elem) {

Callers 1

nameElementMethod · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected