From f92d1708f2c6dfab59662830a043c0b6e244f006 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 21 Jul 2020 11:35:56 +0200 Subject: [PATCH] #924 --- src/ifcparse/IfcHierarchyHelper.h | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/ifcparse/IfcHierarchyHelper.h b/src/ifcparse/IfcHierarchyHelper.h index 03f7660b26..392e663d18 100644 --- a/src/ifcparse/IfcHierarchyHelper.h +++ b/src/ifcparse/IfcHierarchyHelper.h @@ -96,6 +96,26 @@ namespace { return t->RelatedElements()->generalize(); } + IfcEntityList::ptr get_children_of_relation(Ifc2x3::IfcRelAggregates* t) { + return t->RelatedObjects()->generalize(); + } + + IfcEntityList::ptr get_children_of_relation(Ifc4::IfcRelAggregates* t) { + return t->RelatedObjects()->generalize(); + } + + IfcEntityList::ptr get_children_of_relation(Ifc4x1::IfcRelAggregates* t) { + return t->RelatedObjects()->generalize(); + } + + IfcEntityList::ptr get_children_of_relation(Ifc4x2::IfcRelAggregates* t) { + return t->RelatedObjects()->generalize(); + } + + IfcEntityList::ptr get_children_of_relation(Ifc4x3_rc1::IfcRelAggregates* t) { + return t->RelatedObjects()->generalize(); + } + void set_children_of_relation(IfcUtil::IfcBaseClass* t, IfcEntityList::ptr& cs) { IfcWrite::IfcWriteArgument* attr = new IfcWrite::IfcWriteArgument; attr->set(cs); @@ -124,6 +144,26 @@ namespace { void set_children_of_relation(Ifc4x3_rc1::IfcRelContainedInSpatialStructure* t, IfcEntityList::ptr& cs) { t->setRelatedElements(cs->as()); } + + void set_children_of_relation(Ifc2x3::IfcRelAggregates* t, IfcEntityList::ptr& cs) { + t->setRelatedObjects(cs->as()); + } + + void set_children_of_relation(Ifc4::IfcRelAggregates* t, IfcEntityList::ptr& cs) { + t->setRelatedObjects(cs->as()); + } + + void set_children_of_relation(Ifc4x1::IfcRelAggregates* t, IfcEntityList::ptr& cs) { + t->setRelatedObjects(cs->as()); + } + + void set_children_of_relation(Ifc4x2::IfcRelAggregates* t, IfcEntityList::ptr& cs) { + t->setRelatedObjects(cs->as()); + } + + void set_children_of_relation(Ifc4x3_rc1::IfcRelAggregates* t, IfcEntityList::ptr& cs) { + t->setRelatedObjects(cs->as()); + } } template class IFC_PARSE_API IfcHierarchyHelper : public IfcParse::IfcFile {