Book a Demo

Author Topic: Reverse Engineering Enumeration and Struct (Type)  (Read 1956 times)

sbarkeruk

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Reverse Engineering Enumeration and Struct (Type)
« on: April 07, 2005, 07:55:15 am »
With VB6 as the default langauge, I understand that struct must be used instead of type in EA (As Code Generation Template looks for struct and enumeration to handle these stereotypes).

Anyway, I have set up a class (stereotype module) that contains two subclasses:

a) A class with stereotype set to enumerator.
b) A class with setereotype set to struct.

When generating code, the enumerator and struct are not added to the class!

To ensure I did not set up my model incorrectly, I created a class in VB6 that had this content, then reverse engineered it. The resulting model was identical to mine as far as I could tell!

Please could you tell me why the Code Generation Templates seem to have completely ignored these two subclasses?

I do have two overriden stereotypes for the Visual Basic Class template (module - my custom stereotype, and form) both of which I have based on the basic class template to generate the correct output in each case, but do not expect that this should have caused a clash.

Class Template, enumeration stereotype override and struct stereotype override all remain unmodified (as per default code).

Simon