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

Method construct

src/serializers/JsonSerializer.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45JsonSerializer* JsonSerializerFactory::Factory::construct(const std::string& schema_name, IfcParse::IfcFile* file, std::string json_filename, JsonSerializer::Dialect dialect) {
46 const std::string schema_name_lower = boost::to_lower_copy(schema_name);
47 auto it = this->find(schema_name_lower);
48 if (it == this->end()) {
49 throw IfcParse::IfcException("No Json serializer registered for " + schema_name);
50 }
51 return it->second(file, json_filename, dialect);
52}
53
54JsonSerializer::JsonSerializer(IfcParse::IfcFile* file, const std::string& json_filename, JsonSerializer::Dialect dialect) {
55 if (file) {

Callers 1

JsonSerializerMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected