mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
Allow passing buffer to serializers that support it
This commit is contained in:
@@ -36,6 +36,10 @@ plugin::metadata plugin_metadata() {
|
||||
}
|
||||
|
||||
boost::shared_ptr<GeometrySerializer> create_serializer(const geometry_serializer_context& context) {
|
||||
if (context.output_temp_stream) {
|
||||
return boost::make_shared<TtlWktSerializer>(
|
||||
*context.output_temp_stream, context.geometry_settings, context.serializer_settings);
|
||||
}
|
||||
return boost::make_shared<TtlWktSerializer>(context.output_temp_filename, context.geometry_settings, context.serializer_settings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user