| 22 | } |
| 23 | |
| 24 | XmlSerializer* 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 | |
| 34 | XmlSerializer::XmlSerializer(IfcParse::IfcFile* file, const std::string& xml_filename) { |
| 35 | if (file) { |
no test coverage detected