#[unsafe(no_mangle)]pub unsafe extern "C" fn openbim_ifc_v0_1_model_export_table(
model: OpenbimIfcModel,
query: *const u8,
query_len: usize,
columns: *const *const u8,
column_lengths: *const usize,
column_count: usize,
format: u32,
key: u32,
null: *const u8,
null_len: usize,
buffer: *mut u8,
capacity: usize,
out_required: *mut usize,
) -> OpenbimIfcStatusExpand description
The entities selector query (UTF-8) selects as a table in format
(OPENBIM_IFC_TABLE_CSV, _TSV, _XLSX), filling buffer as
openbim_ifc_v0_1_model_write does: the key column first (key:
OPENBIM_IFC_TABLE_KEY_AUTO or _GLOBAL_ID for GlobalId, _ID for
id), then one column per value path of columns (column_count
UTF-8 paths of column_lengths[i] bytes, e.g. type.Name,
Pset_WallCommon.FireRating), each cell the value the path reads as
text, NULL as null (UTF-8, may be empty).
InvalidSelector (span through openbim_ifc_v0_1_last_error_span) for
a query or path that does not parse; WrongEntityType for an entity
without a GlobalId in a table keyed by it; InvalidArgument for an
unknown format or key, or text that is not UTF-8; FeatureDisabled;
and as for openbim_ifc_v0_1_model_select.
ยงSafety
query, null valid for their lengths; columns and
column_lengths null (with column_count 0) or valid for
column_count reads, each column valid for its length; the buffer as
for openbim_ifc_v0_1_model_write.