Book a Demo

Author Topic: Code generation template for enum in C++?  (Read 5005 times)

JEff Russell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Code generation template for enum in C++?
« on: October 03, 2003, 01:54:25 pm »
Anyone know which template controls generation of an enumeration stereotyped class for C++?

I tweaked the ClassBody template to adjust class output to use my brace style and indentation for attributes, but I can't find the stuff that code generation uses for an enumeration.
JEff
JEff

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Code generation template for enum in C++?
« Reply #1 on: October 05, 2003, 04:11:48 pm »
Hi Jeff,

The Class Body template template is overriden for attribute- you'll see "enumeration" listed as one of the stereotype overrides for ClassBody.  Click on it and modify/save that template.

As for the individual enumeration items, they are generated in the Attribute Declaration template.

Hope this helps.

Regards,
Ben

JEff Russell

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Code generation template for enum in C++?
« Reply #2 on: October 06, 2003, 06:37:21 am »
Quote
The Class Body template template is overriden for attribute- you'll see "enumeration" listed as one of the stereotype overrides for ClassBody.

Excellent :D  The secret is that the "override" template list changes depending on the current base template selected.
JEff