It is currently Tue Feb 07, 2012 8:55 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: User-defined Type in User-defined Profile
PostPosted: Wed Jul 14, 2010 12:03 pm 

Joined: Thu May 20, 2010 7:22 am
Posts: 5
Hello,

following situation: I made a own profile for standard types like unsigned integer as uin16_t (typedef unsigned short uint16_t;), or defines as variables like #define BIT13 (0x2000u)

for the usage I have defined an attribute by "use existing type" eg int8_t in OWNProfile. On generating sources I am getting a syntax error (C2061). How can I generate the profile typedefs/variables?

Best regards,...


Offline
 Profile  
 
 Post subject: Re: User-defined Type in User-defined Profile
PostPosted: Mon Jul 19, 2010 6:41 am 

Joined: Thu May 20, 2010 7:22 am
Posts: 5
Answer from IBM support: no code generation from a profile (only in old rhapsody versions) -> only one solution: add a "standard" package

IBM support wrote:
Aus einem Profile kann kein Code generiert werden, das war in alten Rhapsody Versionen möglich, dient aber heute nur noch zur Definition von Stereotypen und globalen Property Einstellungen. Aus Kompatibilitätsgründen wurde aber das Anlegen von Typen und Variablen nicht gesperrt.
Wenn Sie Code generieren, wird kein <profile>.h und <profile>.c erzeugt. Das ist allerdings notwendig, damit die Typdefinition irgendwo auftaucht.
Lösung:
Verschieben Sie die Typen und Variablen in ein normales Package.
Einziger Nachteil:
für alle neuen Projekte muß zusätzlich zum Profile (mit Ihren anderen Definitionen) das Type Package per Add to Model geladen werden.
Wichtig:
Für das Type Package selbst darf die Property CG::Package::GeneratePackageCode nicht ausgeschaltet sein.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred