Skip to main content

openbim_ifc_v0_1_model_validate_express

Function openbim_ifc_v0_1_model_validate_express 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_validate_express( model: OpenbimIfcModel, express: *const u8, express_len: usize, max_findings: usize, out_summary: *mut OpenbimIfcExpressValidationSummary, 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 with the EXPRESS rules of the declared release, read from express, the UTF-8 text of that release’s .exp file (#538).

As openbim_ifc_v0_1_model_validate (the same findings tape and max_findings convention), with every WHERE, type and global rule evaluated and INVERSE cardinality checked; findings of severity indeterminate are rules that evaluated to UNKNOWN. The text is parsed on every call, so a size query parses and validates. InvalidArgument when express is not UTF-8; ExpressMismatch when it declares another schema than the model’s or disagrees with the release’s tables; InvalidExpress when it does not parse; UnsupportedSchema when the declared schema is not bundled; FeatureDisabled in a build without the validate-express feature. The schemas are CC BY-ND, so none is bundled.

§Safety

express valid for reads of express_len bytes; out_summary valid for one write; otherwise as for openbim_ifc_v0_1_entity_attribute.