Skip to main content

openbim_ifc_v0_1_model_author

Function openbim_ifc_v0_1_model_author 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_author( model: OpenbimIfcModel, nodes: *const OpenbimIfcValueNode, node_count: usize, strings: *const u8, string_len: usize, out_ids: *mut u64, ids_capacity: usize, out_count: *mut usize, ) -> OpenbimIfcStatus
Expand description

Apply the operations on the tape as one checked transaction against the release the header declares: all of them, in order, or none, and the model unchanged.

out_count gets the number of operations. out_ids gets, per operation, the id of the entity it produced, or 0 for a removal; with ids_capacity below the operation count the call returns BufferTooSmall and applies nothing.

UnsupportedSchema for an unbundled release or an undeclared type; UnknownAttribute, DerivedAttribute, MissingAttribute; InvalidValue for a value of the wrong type, form or cardinality, a duplicate GlobalId, a malformed tape or handle, or a placement the schema cannot hold; WrongEntityType for an abstract type, a builder’s type of the wrong kind or a reference the attribute does not accept; MissingEntity, MissingReference; InvalidModel for a second containment, decomposition, typing, material or IfcProject (unless replace), a mapped representation that clashes with one the object has, a PredefinedType that contradicts the type’s, a shape representation that already has its one use, a product definition shape other products share, or a representation not assigned where it is unassigned from; InvalidValue also for a representation type its items do not fit, items no type fits, or a missing representation identifier; Unsupported for a representation map that cannot be mapped, a material usage whose defaults cannot be determined, or a representation type check needing a curve dimension that cannot be derived; StillReferenced for a removal an entity other than a relationship still needs.

§Safety

nodes valid for node_count reads and strings for string_len (either null when its length is 0); out_ids null with capacity 0, or valid for ids_capacity writes; out_count valid for one write.