Robert,
you may want to have a look into the "ModernCpp" profile, which is a nested part inside of the RXF_CPP, but independent of it.
It adds terminology of C++11, C++14 and C++17 to Rhapsody, in order to use them in code generation.
It comes as an installable AddOn in Rhapsody v10.0.x or later, but can be added to and used with 9.x versions as well.
Best regards,
Martin
------------------------------
[Martin] [Stockl]
[
Embedded Real-Time Systems Modeling Specialist]
[SodiusWillert Germany]
------------------------------
Original Message:
Sent: Mon March 27, 2023 02:55 AM
From: Robert Fromm
Subject: Enum redeclaration conflict during code generation
Hello Markus,
thanks for the feedback.
Basically this would be a solution. Indeed, our architecture defines quite a great amount of enumeration. Indeed yet we did not simulate, so it didn't matter.
As C++ is capable of scoped enumeration since quite some time. I opened a ticket at IBM so let's see what they answer.
Best regards
Robert
------------------------------
Robert Fromm
------------------------------
Original Message:
Sent: Mon March 27, 2023 02:40 AM
From: Markus Nordstrand
Subject: Enum redeclaration conflict during code generation
I am also curious about this. I usually solve it by making the enumeration names unique by adding a suffix. In this case since the name of the ValueType was Enumeration1 and Enumeration 2, I would had named the enumerations Success_1 and Success_2 respectively.
I asked the same question on Burce's forum here and he also makes the names unique.
------------------------------
Markus Nordstrand