Book a Demo

Author Topic: What is the base template for "typedef"?  (Read 6539 times)

heba

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
What is the base template for "typedef"?
« on: April 23, 2016, 12:53:03 am »
Hi all,

I have a question regarding code generation.

In my model I have a UML class "MyNiceClass", stereotype = "struct" with some attributes.  I set the tagged values "typeDef" = "true" and "typeSynonyms" = "MyNiceClassType".  Now when I generate C code I mainly get what I expect:

typedef struct MyNiceClass {
  /* some attributes with doxygen documentation */
} MyNiceClassType;


So attributes and the attribute notes have been modified by me and this works well.  What I now want to do is also modify the "typedef struct" (the "frame" of the attributes) but I cannot find any template to modify.  Nothing in the "class" area influences the result here. 

Does anyone know what the correct base template is or if EA has some internal magic processing these "typedef = true" classes?

Many thanks!
Heiko


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: What is the base template for "typedef"?
« Reply #1 on: April 26, 2016, 10:16:36 am »
It will be in the struct stereotype override (bottom left list) Class Declaration template.

heba

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: What is the base template for "typedef"?
« Reply #2 on: May 02, 2016, 06:18:32 pm »
Thank you, Simon!  For some reason I never saw these overrides. They look very promising to what I want to do :)

-Heiko