From 803cc66abbc6a244be87b2f5cbace423524a1a6e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 11 Jul 2020 11:55:00 +0200 Subject: [PATCH] #873 --- src/ifcparse/IfcFile.h | 3 +++ src/ifcparse/IfcParse.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/ifcparse/IfcFile.h b/src/ifcparse/IfcFile.h index e2b3f230b1..8740824d9e 100644 --- a/src/ifcparse/IfcFile.h +++ b/src/ifcparse/IfcFile.h @@ -167,6 +167,9 @@ public: /// IfcWall will also return IfcWallStandardCase entities IfcEntityList::ptr instances_by_type(const std::string& t); + /// Returns all entities in the file that match the positional argument. + IfcEntityList::ptr instances_by_type_excl_subtypes(const std::string& t); + /// Returns all entities in the file that reference the id IfcEntityList::ptr instances_by_reference(int id); diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index e33bf1f14d..c0f8a28839 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -1902,6 +1902,10 @@ IfcEntityList::ptr IfcFile::instances_by_type(const std::string& t) { return instances_by_type(schema()->declaration_by_name(t)); } +IfcEntityList::ptr IfcFile::instances_by_type_excl_subtypes(const std::string& t) { + return instances_by_type_excl_subtypes(schema()->declaration_by_name(t)); +} + IfcEntityList::ptr IfcFile::instances_by_reference(int t) { entities_by_ref_t::const_iterator it = byref.find(t); IfcEntityList::ptr ret;