Skip to main content

Crate ifc_occurrence

Crate ifc_occurrence 

Source
Expand description

Built element and distribution occurrence classes.

A type definition says what a pump is; an occurrence says that one particular pump sits here, in this system, with this tag. This crate authors the occurrence side and enforces the link between the two: the schema pairs each occurrence class with exactly one type class, and a mismatch is refused rather than written.

The catalogue in table is generated from references/ifc-spec/ifc4x3-add2/IFC4X3_ADD2.exp by scripts/gen-occurrences.py; create and create_with_owner_history are the writers. They write the model’s declared release, laid out from its own table, not the catalogue’s IFC4X3 row.

Modules§

table
The generated occurrence catalogue.

Structs§

OccurrenceDraft
Attributes shared by every occurrence.

Enums§

OccurrenceError
Why an occurrence was refused.

Functions§

create
Stage one occurrence.
create_with_owner_history
create with a caller-supplied IfcOwnerHistory, which IFC2X3 requires on every IfcRoot.

Type Aliases§

OccurrenceResult
Result alias for this crate.