Expand description
The value tape: attribute values as flat C data.
A value is a pre-order array of OpenbimIfcValueNode. A container node
(list, typed) is followed by its children; list records how many,
typed always has exactly one. Strings are not in the nodes: each node
carries an (offset, len) byte range into one shared UTF-8 buffer, which
is how text and names cross without any Rust-owned pointer.
$, *, .U. and .F. are distinct kinds or payloads, never folded,
for the same reason as in the JavaScript and Python bindings (ADR 0013).
A tape rather than recursive structs or a cursor API: one call returns a whole value, the caller owns both buffers, and no allocation crosses the ABI.
Structs§
- Openbim
IfcValue Node - One node of a value tape. Fields a kind does not use are zero.
- Reader
- Reads values back off a caller’s tape, checking every field.
- Tape
- A value flattened to a tape: the nodes plus their shared string bytes.
Constants§
- OPENBIM_
IFC_ KIND_ BINARY - Binary digits in the string range.
- OPENBIM_
IFC_ KIND_ BOOL .T./.F.;int_valueis 1 or 0.- OPENBIM_
IFC_ KIND_ DERIVED *.- OPENBIM_
IFC_ KIND_ ENUM - Enumeration name in the string range.
- OPENBIM_
IFC_ KIND_ EXACT - Only in a plain value (
openbim_ifc_v0_1_entity_set_attribute_by_name_plain, #342): one child follows and is written exactly as given, never coerced. Refused in every other tape. - OPENBIM_
IFC_ KIND_ INTEGER - Integer in
int_value. - OPENBIM_
IFC_ KIND_ LIST - Aggregate;
child_countchildren follow. - OPENBIM_
IFC_ KIND_ NULL - Kind codes. Plain integers, not a Rust enum, so an unknown value from C is rejected rather than read as an invalid discriminant.
- OPENBIM_
IFC_ KIND_ REAL - Finite real in
real_value. - OPENBIM_
IFC_ KIND_ REF - Entity id in
int_value(non-negative). - OPENBIM_
IFC_ KIND_ TEXT - Text in the string range.
- OPENBIM_
IFC_ KIND_ TYPED - Typed wrapper; type name in the string range, one child follows.
- OPENBIM_
IFC_ KIND_ UNKNOWN .U..
Functions§
- kind_
code - The C code for a kind.