MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / construct

Method construct

src/ifcgeom/abstract_mapping.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40ifcopenshell::geometry::abstract_mapping* ifcopenshell::geometry::impl::MappingFactoryImplementation::construct(IfcParse::IfcFile* file, Settings& s) {
41 const std::string schema_name_lower = boost::to_lower_copy(file->schema()->name());
42 std::map<std::string, ifcopenshell::geometry::impl::mapping_fn>::const_iterator it;
43 it = this->find(schema_name_lower);
44 if (it == end()) {
45 throw IfcParse::IfcException("No geometry mapping registered for " + schema_name_lower);
46 }
47 auto new_mapping = it->second(file, s);
48 new_mapping->initialize_settings();
49 return new_mapping;
50}

Callers 4

ConverterMethod · 0.45
HybridKernelMethod · 0.45
traverse_matchMethod · 0.45
matchMethod · 0.45

Calls 5

initialize_settingsMethod · 0.80
endFunction · 0.70
nameMethod · 0.45
schemaMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected