Closed Octavian-Zhang closed 10 months ago
@Octavian-Zhang
The IDL to C++11 language mapping specification states in clause 6.9 that an IDL enumeration should map to an uint32_t
C++11 enumeration. The DDS XTypes specification allows to modify the size of the enumerated type using the @bit_bound
builtin annotation (Fast DDS-Gen does not support yet this specific annotation for enumerations, as stated in Fast DDS documentation). It does not seem to be a manner to define negative values within an IDL enumeration.
Is it possible to define an enumeration as the following in IDL?
If yes, what's the correct syntax for such a definition? The code snippet above isn't valid in IDL.