Feature Request: Enum-to-String and String-to-Enum Mapping #434
harinaathgobi1998
started this conversation in
Ideas
Replies: 1 comment
-
We are open to external contribution, so fill free to open a PR with your suggested changes if wanted. In other case, consider contacting eProsima's commercial support team at info@eprosima.com if this is a need for your project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be very helpful if Fast-DDS-Gen could generate
enum-to-string
andstring-to-enum
mappings automatically for enums defined in IDL files.Proposed Solution:
EnumTypeCode.java
file to include methods for generating mappings.CommonEnumType.stg
template to generate helper functions likeenumToString
andstringToEnum
.Example Output:
Beta Was this translation helpful? Give feedback.
All reactions