| 726 | |
| 727 | namespace { |
| 728 | IfcUtil::IfcBaseEntity* get_RelatingObject(IfcSchema::IfcRelDecomposes* decompose) { |
| 729 | #ifdef SCHEMA_IfcRelDecomposes_HAS_RelatingObject |
| 730 | return decompose->RelatingObject(); |
| 731 | #else |
| 732 | IfcSchema::IfcRelAggregates* aggr = decompose->as<IfcSchema::IfcRelAggregates>(); |
| 733 | if (aggr != nullptr) { |
| 734 | return aggr->RelatingObject(); |
| 735 | } |
| 736 | return nullptr; |
| 737 | #endif |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | IfcUtil::IfcBaseEntity* mapping::get_decomposing_entity(const IfcUtil::IfcBaseEntity* inst, bool include_openings) { |
no outgoing calls
no test coverage detected