Skip to main content

openbim_ifc_v0_1_model_parse_ifcxml

Function openbim_ifc_v0_1_model_parse_ifcxml 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_parse_ifcxml( data: *const u8, len: usize, profile: *const u8, profile_len: usize, out_model: *mut OpenbimIfcModel, error_buffer: *mut u8, capacity: usize, ) -> OpenbimIfcStatus
Expand description

Parse len bytes of ifcXML and write the new model’s handle.

profile (UTF-8, profile_len bytes) is null with length 0 for the native layout, else IFC4 or IFC4X3_ADD2 (any case) for that release’s XSD configuration. UnsupportedProfile for any other name, UnsupportedSchema when the release is not bundled, Parse when the document does not read, FeatureDisabled without the ifcxml feature. The message goes to the optional error_buffer as for openbim_ifc_v0_1_model_parse.

§Safety

As openbim_ifc_v0_1_model_parse; profile, if non-null, valid for profile_len reads.