pub fn schema_of(model: &Model) -> Result<SchemaVersion, SchemaResolutionError>Expand description
Resolve the IFC release a model declares, from its FILE_SCHEMA header.
This is the seam every read in this crate goes through: crate::systems,
crate::ports, crate::zones, crate::ConnectionGraph::build,
crate::ElementRole::of, crate::role_inconsistencies and
crate::spatial_placements all refuse exactly what this refuses, with
the same error. Nothing is read against a release the file did not
declare.
ยงErrors
SchemaResolutionError when the header names no schema, more than one,
or a release this crate has not verified (anything but IFC2X3, IFC4 and
IFC4X3), or one this build does not bundle.