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

Method construct

src/serializers/XmlSerializer.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24XmlSerializer* XmlSerializerFactory::Factory::construct(const std::string& schema_name, IfcParse::IfcFile* file, std::string xml_filename) {
25 const std::string schema_name_lower = boost::to_lower_copy(schema_name);
26 typename std::map<std::string, fn>::const_iterator it;
27 it = this->find(schema_name_lower);
28 if (it == this->end()) {
29 throw IfcParse::IfcException("No XML serializer registered for " + schema_name);
30 }
31 return it->second(file, xml_filename);
32}
33
34XmlSerializer::XmlSerializer(IfcParse::IfcFile* file, const std::string& xml_filename) {
35 if (file) {

Callers 5

XmlSerializerMethod · 0.45
addTextAnnotationsMethod · 0.45
setFileMethod · 0.45
JsonSerializer.hFile · 0.45
XmlSerializer.hFile · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected