mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
XML serializer decomposition fixes for IFC4
This commit is contained in:
@@ -264,7 +264,11 @@ ptree& descend(IfcSchema::IfcObjectDefinition* product, ptree& tree) {
|
|||||||
#else
|
#else
|
||||||
IfcSchema::IfcObjectDefinition::list::ptr structures = get_related
|
IfcSchema::IfcObjectDefinition::list::ptr structures = get_related
|
||||||
<IfcSchema::IfcObjectDefinition, IfcSchema::IfcRelAggregates, IfcSchema::IfcObjectDefinition>
|
<IfcSchema::IfcObjectDefinition, IfcSchema::IfcRelAggregates, IfcSchema::IfcObjectDefinition>
|
||||||
(product, &IfcSchema::IfcProduct::IsDecomposedBy, &IfcSchema::IfcRelAggregates::RelatedObjects);
|
(product, &IfcSchema::IfcObjectDefinition::IsDecomposedBy, &IfcSchema::IfcRelAggregates::RelatedObjects);
|
||||||
|
|
||||||
|
structures->push(get_related
|
||||||
|
<IfcSchema::IfcObjectDefinition, IfcSchema::IfcRelNests, IfcSchema::IfcObjectDefinition>
|
||||||
|
(product, &IfcSchema::IfcObjectDefinition::IsNestedBy, &IfcSchema::IfcRelNests::RelatedObjects));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (IfcSchema::IfcObjectDefinition::list::it it = structures->begin(); it != structures->end(); ++it) {
|
for (IfcSchema::IfcObjectDefinition::list::it it = structures->begin(); it != structures->end(); ++it) {
|
||||||
@@ -292,7 +296,7 @@ ptree& descend(IfcSchema::IfcObjectDefinition* product, ptree& tree) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_IFC4
|
#ifdef SCHEMA_IfcObject_HAS_IsTypedBy
|
||||||
IfcSchema::IfcTypeObject::list::ptr types = get_related
|
IfcSchema::IfcTypeObject::list::ptr types = get_related
|
||||||
<IfcSchema::IfcObject, IfcSchema::IfcRelDefinesByType, IfcSchema::IfcTypeObject>
|
<IfcSchema::IfcObject, IfcSchema::IfcRelDefinesByType, IfcSchema::IfcTypeObject>
|
||||||
(object, &IfcSchema::IfcObject::IsTypedBy, &IfcSchema::IfcRelDefinesByType::RelatingType);
|
(object, &IfcSchema::IfcObject::IsTypedBy, &IfcSchema::IfcRelDefinesByType::RelatingType);
|
||||||
|
|||||||
Reference in New Issue
Block a user