parse_ifcxml now handled by swig config

This commit is contained in:
Thomas Krijnen
2021-10-29 10:40:03 +02:00
parent ea0e70ef0d
commit 280eac6127
-10
View File
@@ -523,16 +523,6 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
%newobject read;
%newobject parse_ifcxml;
%inline %{
IfcParse::IfcFile* parse_ifcxml(const std::string& fn) {
#ifdef WITH_IFCXML
return IfcParse::parse_ifcxml(fn);
#else
throw std::runtime_error("No IfcXML support enabled");
#endif
}
%}
%inline %{
IfcParse::IfcFile* open(const std::string& fn) {
IfcParse::IfcFile* f = new IfcParse::IfcFile(fn);