Skip to main content

openbim_ifc_v0_1_model_import_table

Function openbim_ifc_v0_1_model_import_table 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_import_table( model: OpenbimIfcModel, data: *const u8, data_len: usize, format: u32, key: u32, null: *const u8, null_len: usize, flags: u32, 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

Apply the table data (data_len bytes in format) to the model by its key column (key, as for openbim_ifc_v0_1_model_export_table) as one checked transaction, null (UTF-8) being the cell text of NULL. flags: OPENBIM_IFC_TABLE_DRY_RUN. The answer is a TableImport tape: applied (BOOL), changes (LIST of TableChange: row, column INTEGER, key, path TEXT, entity, target entity REF, target, before, after TEXT), refusals (LIST of TableRefusal: row, column INTEGER or NULL, code, message TEXT, span LIST of two INTEGERs or NULL). Any refusal means nothing was written; a size query or a short buffer plans the import and writes nothing.

Parse for bytes that are no table of the format; InvalidArgument for an unknown format, key or flag, or a null that is not UTF-8; FeatureDisabled; UnsupportedSchema.

ยงSafety

data and null valid for their lengths; the buffers as for openbim_ifc_v0_1_entity_attribute.