Replies: 1 comment
-
Hi @ctefer Sorry for the late reply. XTypes v1.3 specification establishes in clause 7.3.1.2.1.5 Enumerated Literal Values the following:
So the enumeration size can be actually be configured. However I am afraid that this annotation is not yet supported for enumerations. Thus, I am labeling this ticket as an enhancement and moving it to the Ideas discussion forum where enhancements and feature requests are discussed. |
Beta Was this translation helpful? Give feedback.
-
Topic Types generated from IDL that contain enums are not bounded. The instantiation of these types only calls the annotation constructor of the member class and there's no chance to set the type code. I'm not sure if this is done on purpose due to serialization or if there's no way to bound enums.
Would it be possible to set each EnumMember typecode to the parent EnumTypeCode? I believe this just results in the default bounding being true.
Is there an issue with serializing the enums that prevents this bounding? I wouldn't think so as C++ doesn't really care about enum types if they are implemented as a standard integer (which I believe is being done when the pubsubtypes are generated).
Beta Was this translation helpful? Give feedback.
All reactions