| 154 | } |
| 155 | |
| 156 | IfcUtil::IfcBaseClass* IfcParse::schema_definition::instantiate(const IfcParse::declaration* decl, IfcEntityInstanceData&& data) const { |
| 157 | if (factory_ != nullptr) { |
| 158 | return (*factory_)(decl, std::move(data)); |
| 159 | } |
| 160 | return new IfcUtil::IfcLateBoundEntity(decl, std::move(data)); |
| 161 | } |
| 162 | |
| 163 | void IfcParse::register_schema(schema_definition* schema) { |
| 164 | schemas.insert({boost::to_upper_copy(schema->name()), schema}); |
no outgoing calls
no test coverage detected