RISCSoftware / cpacs_tigl_gen

Generates CPACS schema based classes for TiGL
Apache License 2.0
5 stars 5 forks source link

Enums in SimpleTypes with same name but different values are incorrectly collapsed to single type #51

Closed RlanderRISCSW closed 1 year ago

RlanderRISCSW commented 1 year ago

The current version of the code generator tries to simplify enum type names in case they are used in several types. This is used for example in the "symmetry" attributes of several types, where all these enums are combined to a single CPACSSymmetry type. The problem with this logic occurs when multiple attributes with the same name, but with different possible enumeration values are used. When both attribute types are used at least in two types, the attribute types are collapsed to a single type in the source code, containing the possible enum values of the latter one (see attached example). schema.zip