Skip to content

Commit e44221c

Browse files
committed
XML serializer decomposition fixes for IFC4
1 parent 56e3353 commit e44221c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/serializers/schema_dependent/XmlSerializer.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ ptree& descend(IfcSchema::IfcObjectDefinition* product, ptree& tree) {
264264
#else
265265
IfcSchema::IfcObjectDefinition::list::ptr structures = get_related
266266
<IfcSchema::IfcObjectDefinition, IfcSchema::IfcRelAggregates, IfcSchema::IfcObjectDefinition>
267-
(product, &IfcSchema::IfcProduct::IsDecomposedBy, &IfcSchema::IfcRelAggregates::RelatedObjects);
267+
(product, &IfcSchema::IfcObjectDefinition::IsDecomposedBy, &IfcSchema::IfcRelAggregates::RelatedObjects);
268+
269+
structures->push(get_related
270+
<IfcSchema::IfcObjectDefinition, IfcSchema::IfcRelNests, IfcSchema::IfcObjectDefinition>
271+
(product, &IfcSchema::IfcObjectDefinition::IsNestedBy, &IfcSchema::IfcRelNests::RelatedObjects));
268272
#endif
269273

270274
for (IfcSchema::IfcObjectDefinition::list::it it = structures->begin(); it != structures->end(); ++it) {
@@ -292,7 +296,7 @@ ptree& descend(IfcSchema::IfcObjectDefinition* product, ptree& tree) {
292296
}
293297
}
294298

295-
#ifdef USE_IFC4
299+
#ifdef SCHEMA_IfcObject_HAS_IsTypedBy
296300
IfcSchema::IfcTypeObject::list::ptr types = get_related
297301
<IfcSchema::IfcObject, IfcSchema::IfcRelDefinesByType, IfcSchema::IfcTypeObject>
298302
(object, &IfcSchema::IfcObject::IsTypedBy, &IfcSchema::IfcRelDefinesByType::RelatingType);

0 commit comments

Comments
 (0)