Skip to main content

ifc_step/
lib.rs

1//! `ifc-step` — IFC adaptation over generic ISO 10303-21 syntax.
2//!
3//! Generic tokenization, escaping, records, parameters, sections, parsing,
4//! writing, partitioning, spans, diagnostics, and event sinks live in
5//! [`openbim_step`]. This crate owns only conversion between that generic
6//! substrate and [`ifc_model::Model`] plus IFC codec detection and I/O policy.
7//!
8//! | Module | Role |
9//! | --- | --- |
10//! | [`codec`] | [`StepCodec`]/[`StepReader`]: detection, parse policy, I/O |
11//! | [`error`] | STEP-specific failure modes, [`ReadFailure`] |
12//! | `location` | Lines, columns and quotes of the source: [`SyntaxLocation`], diagnostics |
13//! | `parser` | Generic exchange to IFC record model |
14//! | `writer` | IFC record model to physical file |
15
16pub mod codec;
17pub mod error;
18mod index;
19mod lazy;
20mod location;
21mod parser;
22mod writer;
23
24pub use codec::{StepCodec, StepReader};
25pub use error::{ReadFailure, StepError};
26pub use index::Index;
27pub use location::SyntaxLocation;
28pub use openbim_step::is_step_file;
29/// Malformed-record policy, re-exported so consumers need not depend on
30/// `openbim-step` directly to configure a reader.
31pub use openbim_step::{OnMalformed, ParseOptions};