mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
ifcwrap: ignore spf_header set_file_* setters in SWIG (fix Windows wrapper)
The data-model branch's spf_header::set_file_description/name/schema take a const shared_pointer_type& (an internal instance_data* storage handle). SWIG wraps them and emits the alias unqualified into the global-scope wrapper, which MSVC rejects (C2065 'shared_pointer_type': undeclared identifier). The matching getters are already %ignore'd and re-exposed via %extend; the raw setters are not a usable Python API, so ignore them the same way. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,13 @@
|
||||
%ignore ifcopenshell::spf_header::file_description;
|
||||
%ignore ifcopenshell::spf_header::file_name;
|
||||
%ignore ifcopenshell::spf_header::file_schema;
|
||||
// The setters take a raw shared_pointer_type (an internal instance_data*
|
||||
// storage handle), not a Python-facing type. SWIG would emit the alias
|
||||
// unqualified into the global-scope wrapper (C2065 on MSVC), and these
|
||||
// aren't a usable Python API anyway — ignore them like the getters above.
|
||||
%ignore ifcopenshell::spf_header::set_file_description;
|
||||
%ignore ifcopenshell::spf_header::set_file_name;
|
||||
%ignore ifcopenshell::spf_header::set_file_schema;
|
||||
|
||||
%ignore ifcopenshell::HeaderEntity::is;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user