Book a Demo

Author Topic: C language typef  (Read 3601 times)

tonyb

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
C language typef
« on: January 28, 2016, 04:16:33 am »
Greetings,

Is there a good way to model C language typedefs in EA? 

I've figured how to do it somewhat through the class stereotype <<typedef>> and assigning a parent class. However, I haven't figured out how to model the below code examples:

typedef enum TypVarEnum {
    ....
} TypVarEnum;



typedef struct TypVarStruct {
    ....
} TypVarStruct;

Regards

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: C language typef
« Reply #1 on: January 28, 2016, 03:20:49 pm »
From memory use the stereotype "enumeration" or "struct" and add the tagged value typedef=true