We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93a4b6 commit 42fedf8Copy full SHA for 42fedf8
1 file changed
src/ifcwrap/IfcParseWrapper.i
@@ -521,13 +521,18 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
521
// The IfcFile* returned by open() is to be freed by SWIG/Python
522
%newobject open;
523
%newobject read;
524
+%newobject parse_ifcxml;
525
526
%inline %{
527
IfcParse::IfcFile* open(const std::string& fn) {
528
IfcParse::IfcFile* f = new IfcParse::IfcFile(fn);
529
return f;
530
}
531
532
+ IfcParse::IfcFile* parse_ifcxml(const std::string& fn) {
533
+ return IfcParse::parse_ifcxml(fn);
534
+ }
535
+
536
IfcParse::IfcFile* read(const std::string& data) {
537
char* copiedData = new char[data.length()];
538
memcpy(copiedData, data.c_str(), data.length());
0 commit comments