#1803 Use abstract GeometrySerializer as cache to eliminate cyclic dependencies

This commit is contained in:
Thomas Krijnen
2021-10-18 11:38:01 +02:00
parent 4577b7bf60
commit bdc6fcb66f
14 changed files with 54 additions and 26 deletions
+3 -3
View File
@@ -22,7 +22,7 @@
#ifndef SVGSERIALIZER_H
#define SVGSERIALIZER_H
#include "../serializers/GeometrySerializer.h"
#include "../ifcgeom_schema_agnostic/GeometrySerializer.h"
#include "../serializers/util.h"
#include "../ifcparse/utils.h"
@@ -129,7 +129,7 @@ typedef boost::variant<
Handle(HLRBRep_PolyAlgo)
> hlr_t;
class SvgSerializer : public GeometrySerializer {
class SvgSerializer : public WriteOnlyGeometrySerializer {
public:
typedef std::pair<std::string, std::vector<util::string_buffer> > path_object;
typedef std::vector< boost::shared_ptr<util::string_buffer::float_item> > float_item_list;
@@ -184,7 +184,7 @@ protected:
public:
SvgSerializer(const stream_or_filename& out_filename, const SerializerSettings& settings)
: GeometrySerializer(settings)
: WriteOnlyGeometrySerializer(settings)
, svg_file(out_filename)
, xmin(+std::numeric_limits<double>::infinity())
, ymin(+std::numeric_limits<double>::infinity())