mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
parse_ifcxml now handled by swig config
This commit is contained in:
@@ -523,16 +523,6 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
|
|||||||
%newobject read;
|
%newobject read;
|
||||||
%newobject parse_ifcxml;
|
%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 %{
|
%inline %{
|
||||||
IfcParse::IfcFile* open(const std::string& fn) {
|
IfcParse::IfcFile* open(const std::string& fn) {
|
||||||
IfcParse::IfcFile* f = new IfcParse::IfcFile(fn);
|
IfcParse::IfcFile* f = new IfcParse::IfcFile(fn);
|
||||||
|
|||||||
Reference in New Issue
Block a user