Skip to main content

openbim_ifc_v0_1_model_validate

Function openbim_ifc_v0_1_model_validate 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_validate( model: OpenbimIfcModel, max_findings: usize, out_summary: *mut OpenbimIfcValidationSummary, nodes: *mut OpenbimIfcValueNode, node_capacity: usize, out_nodes_required: *mut usize, strings: *mut u8, string_capacity: usize, out_strings_required: *mut usize, ) -> OpenbimIfcStatus
Expand description

Validate against the schema the header declares.

out_summary gets the counts, also when the tape does not fit. The tape is a LIST of findings, sorted by severity, rule, entity and slot; each finding is a LIST of seven values: severity (TEXT: error, evaluation-error, warning or unsupported; also indeterminate from openbim_ifc_v0_1_model_validate_express), rule id (TEXT), entity (REF, or NULL for the file), attribute index (INTEGER or NULL), attribute name (TEXT or NULL), path (TEXT) and message (TEXT). max_findings 0 is the validator’s default budget (10,000). UnsupportedSchema when the declared schema is not bundled; FeatureDisabled in a build without the validate feature.

§Safety

out_summary valid for one write; otherwise as for openbim_ifc_v0_1_entity_attribute.