Move late bound inverse access to IfcBaseEntity

This commit is contained in:
Thomas Krijnen
2020-07-11 23:24:49 +02:00
parent 58fad83d4f
commit a62fd01725
3 changed files with 23 additions and 9 deletions
+6
View File
@@ -24,8 +24,12 @@
#include "../ifcparse/IfcEntityInstanceData.h"
#include "../ifcparse/IfcSchema.h"
#include "../ifcparse/utils.h"
#include <boost/shared_ptr.hpp>
class Argument;
class IfcEntityList;
namespace IfcUtil {
@@ -78,6 +82,8 @@ namespace IfcUtil {
virtual const IfcParse::entity& declaration() const = 0;
Argument* get(const std::string& name) const;
boost::shared_ptr<IfcEntityList> get_inverse(const std::string& a) const;
};
// TODO: Investigate whether these should be template classes instead