Enum definitions in IDLs #286
Replies: 1 comment
-
I am afraid that IDL specification does not allow the first format. The only way to set specific values in an enumeration is the second format. However, I am afraid that Fast DDS-Gen does not support yet the builtin Concerning the Finally, I am moving this conversation to the Support discussion forum as it is not a proper bug in the library as per Fast DDS Contributing guidelines |
Beta Was this translation helpful? Give feedback.
-
Quick question,
if an IDL has the following
format #1
enum EnumName
{
NOTINITIALIZED = 0,
NORMAL = 1
};
Can we use it as is, or do we have to format it like this ?
format #2
enum EnumName
{
@value(0) NOTINITIALIZED,
@value(1) NORMAL
};
Because I am getting an error when I pass the following format #1 to fastddsgen
Also, is there any plan to use enum class in the cxx impl ? That would possibly avoid a lot of compilation conflicts
Beta Was this translation helpful? Give feedback.
All reactions