1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! BIMIFC Model - Trait definitions and shared types for IFC parsing
//!
//! This crate provides the core abstractions for working with IFC (Industry Foundation Classes)
//! files. It defines traits that can be implemented by different parser backends, allowing
//! consumers to work with IFC data in a backend-agnostic way.
//!
//! # Architecture
//!
//! The crate is organized around several key traits:
//!
//! - [`IfcParser`] - Entry point for parsing IFC content
//! - [`IfcModel`] - Read-only access to a parsed IFC model
//! - [`EntityResolver`] - Entity lookup and reference resolution
//! - [`PropertyReader`] - Access to property sets and quantities
//! - [`SpatialQuery`] - Spatial hierarchy traversal and search
//! - [`GeometrySource`] - Geometry data for rendering (optional extension)
//!
//! # Example
//!
//! ```ignore
//! use bimifc_model::{IfcParser, IfcModel, EntityId};
//!
//! // Use any parser that implements IfcParser
//! let parser: Box<dyn IfcParser> = get_parser();
//! let model = parser.parse(ifc_content)?;
//!
//! // Access data through trait interfaces
//! let resolver = model.resolver();
//! if let Some(entity) = resolver.get(EntityId(123)) {
//! println!("Entity type: {:?}", entity.ifc_type);
//! }
//! ```
// Re-export all public types
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;