This commit is contained in:
Thomas Krijnen
2024-08-20 20:21:35 +02:00
parent 9c323f91dd
commit 261fb895eb
16 changed files with 273 additions and 467 deletions
+3 -3
View File
@@ -152,11 +152,11 @@ IfcParse::schema_definition::~schema_definition() {
delete factory_;
}
IfcUtil::IfcBaseClass* IfcParse::schema_definition::instantiate(const std::string& type_name, IfcEntityInstanceData&& data) const {
IfcUtil::IfcBaseClass* IfcParse::schema_definition::instantiate(const IfcParse::declaration* decl, IfcEntityInstanceData&& data) const {
if (factory_ != nullptr) {
return (*factory_)(declaration_by_name(type_name), std::move(data));
return (*factory_)(decl, std::move(data));
}
return new IfcUtil::IfcLateBoundEntity(declaration_by_name(type_name), std::move(data));
return new IfcUtil::IfcLateBoundEntity(decl, std::move(data));
}
void IfcParse::register_schema(schema_definition* schema) {