Enum definitions in IDLs #286
anwaymukherjee
started this conversation in
Support
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions