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