typedef struct

300 views
Skip to first unread message

Alec555

unread,
Jun 13, 2014, 10:26:42 AM6/13/14
to sparx-enterprise-archite...@googlegroups.com
Hello,

I'm pretty new to EA and I've a simple problem with code generation (C). I want to use typedef statement to define a new name. For example I want to get following code:


Code:
typedef struct config_tag config;

struct config_tag
{
     int abc;
} ;


So I've created a new UML-diagram, which contains typedef class "config" and struct class "config_tag". Both classes are connected by generalization. After the code generation I'm missing the stereotype struct after the keyword typedef. I'm getting following result:


Code:
typedef config_tag config;

struct config_tag
{
     int abc;
} ;


My question is how can I enable to print struct-keyword after the typedef-keyword during the code generation?

I would be appreciated for your help!

greetings
Alec

[original message]

Makulik

unread,
Jun 13, 2014, 11:35:06 AM6/13/14
to sparx-enterprise-archite...@googlegroups.com
Check the following document

http://www.sparxsystems.com/downloads/resources/booklets/uml_code_engineering.pdf

There are several options, stereotypes and tags, that control code generation for C and C++ in detail.

Best regards,
Günther

[original message]
Reply all
Reply to author
Forward
0 new messages