Skip to main content

cimmodel/
lib.rs

1//! The IEC 61970/61968 Common Information Model as profiled by ENTSO-E CGMES
2//! and the Network Code profiles: the streaming RDF/XML decoder that builds a
3//! [`CimDataset`] of [`Element`]s, and conversion back to RDF/XML and to JSON.
4//!
5//! Elements are property bags. What each class declares comes from a class
6//! table, generated by `cimgen` into `src/generated/` (gitignored; run
7//! `make generate`) or read from RDFS at runtime ([`schema_source`]).
8//! Everything else in `src/` is hand-written.
9
10pub mod base;
11pub mod convert;
12pub mod convert_nc;
13pub mod decode;
14pub mod difference;
15pub mod registry;
16pub mod schema_source;
17
18#[rustfmt::skip] // written by cimgen
19mod generated;
20pub use generated::*;
21
22pub use base::{Element, FieldValue, Value};
23pub use decode::{CimDataset, FieldForm};
24pub use difference::{Applied, Block, Changed, Differences, FieldChange, Statement, Unmatched};