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

Function capture_output

src/serializers/TtlWktSerializer.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219 template <typename Fn, typename... Ts>
220 std::string capture_output(Fn fn, Ts... ts) {
221 std::ostringstream oss;
222 oss << std::setprecision(std::numeric_limits<double>::digits10 + 1);
223 fn(oss, ts...);
224 return oss.str();
225 }
226}
227
228TtlWktSerializer::TtlWktSerializer(const stream_or_filename& filename, const ifcopenshell::geometry::Settings& geometry_settings, const ifcopenshell::geometry::SerializerSettings& settings)

Callers 1

writeMethod · 0.85

Calls 2

fnFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected