Expand description
Mapping IDL-Primitive → C++-Type-Strings.
Follows the OMG IDL4-CPP mapping §7.4 Table 7.5 and Table 7.6 (formal/2018-07-01).
Only the foundation subset (Block B): primitive scalars, strings, as well as the
Foundation-Container [std::vector], std::array, [std::variant],
[std::optional].
Functions§
- check_
identifier - Check + error conversion: returns Err if
nameis reserved. - floating_
to_ cpp - Mapping for floating subtypes.
long doubleis reported asCppGenError::UnsupportedConstruct(block E — outside the current scope). - integer_
to_ cpp - Mapping for integer subtypes.
- is_
reserved - Checks whether an identifier is a C++ keyword.
- primitive_
to_ cpp - Maps a
PrimitiveTypeto the C++ type expression (as&'static str).