Skip to main content

Module conformance

Module conformance 

Source
Expand description

Conformance-Marker fuer DDS-XML 1.0 §2.4 + §7.2.0.

§ 2.4 — Atomic Building-Block-Selection. Spec verlangt, dass die Implementierung pro Building-Block atomisch sagen kann: “selected” oder “not selected”. Wir markieren das via SUPPORTED_BUILDING_BLOCKS — die Liste der vom Crate produktiv unterstuetzten Building-Blocks. Eine assert!-basierte Test-Tabelle (tests::supported_blocks_match_repo) verifiziert, dass die Liste mit den tatsaechlich exponierten Modulen uebereinstimmt.

§ 7.2.0 — 1-zu-1-Mapping IDL-Datentypen. Die Spec sagt: “The XML representation of resources that correspond to data-types defined in the DDS IDL PSM is obtained by performing a 1-to-1 mapping of the corresponding IDL data type.” Wir kodieren diese Mapping- Tabelle als IDL_TO_XML_MAPPING — pro IDL-Datentyp-Kategorie ein Verweis auf die produzierende Funktion bzw. das Modul, sodass Reviewer/Tester die Vollstaendigkeit der Abdeckung an einem Ort sehen koennen.

Constants§

IDL_TO_XML_MAPPING
1-zu-1-Mapping IDL-Datentyp -> XML-Konstruktor + produzierende API-Funktion. Spec §7.2.0.
SUPPORTED_BUILDING_BLOCKS
Liste der Building Blocks aus DDS-XML 1.0 §7.3.1.1, die in diesem Crate produktiv unterstuetzt sind.