#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
@@ -43,13 +43,13 @@
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
#include "../serializers/GeometrySerializer.h"
#include "../ifcgeom_schema_agnostic/GeometrySerializer.h"
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
class ColladaSerializer : public GeometrySerializer
class ColladaSerializer : public WriteOnlyGeometrySerializer
{
// TODO The vast amount of implement details of ColladaSerializer could be hidden to the cpp file.
private:
@@ -219,7 +219,7 @@ private:
float unit_magnitude;
public:
ColladaSerializer(const std::string& dae_filename, const SerializerSettings& settings)
: GeometrySerializer(settings)
: WriteOnlyGeometrySerializer(settings)
, exporter("IfcOpenShell", dae_filename, this, settings.precision >= 15)
{
exporter.serializer = this;