Skip to main content

Module additional

Module additional 

Source
Expand description

additional format: reads .add.xml, of which only the E1/E2/E3 detector definitions are modelled. Namespaced for the same reason as routes — see the crate docs. additional format: reads .add.xml (SUMO “additional” files), of which only the E1/E2/E3 detector definitions are modelled, and (under write) writes it back out. Own namespace at sumo_types::additional — see the crate docs for why, like routes and unlike net, it isn’t flattened to the crate root.

Re-exports§

pub use domain::Additional;
pub use reader::read_additional;
pub use reader::read_additional_from;
pub use writer::write_additional;
pub use writer::write_additional_to;

Modules§

domain
Layer 2 for additional: this crate’s own domain types for .add.xml.
reader
Reading a .add.xml file into Additional: deserializes the input into layer 1 (the private schema module) and converts it to layer 2 (crate::additional::domain) in one step, mirroring the other formats’ readers.
schema_mapper
Conversion from layer 1 (the private schema module, generated by xsd-parser from the SUMO XSDs) to layer 2 (crate::additional::domain).
schema_writer
Conversion from layer 2 (crate::additional::domain) to layer 1 (the private schema module) — the inverse of schema_mapper, only compiled under write.
writer
Writing an Additional to a .add.xml file: converts layer 2 into layer 1 (the private schema module) via super::schema_writer and serializes it in one step, mirroring additional’s own reader.