Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: GeneratePackageCode set to smart?
Topic Summary:
Created On: 30-May-2007 08:32
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 30-May-2007 08:32
User is offline View Users Profile Print this message


Jens Konnertz

Posts: 10
Joined: 21-Feb-2007

Hello,

do anybody know when there will be no code generated for a package while the property generatePackageCode set to smart.

In my model, the package do not have any included element despite of a lot of other package (no files, no classes, ...).

Thanks you very much for your help.

Best regards
Jens
Report this to a Moderator Report this to a Moderator
 5-Jun-2007 12:49
User is offline View Users Profile Print this message


Volker Subat

Posts: 13
Joined: 20-Jan-2006

Hi there,

normally there shouldn't be any .c and .h file for your package. It works on my project. :-)

the Spec sais:
[QUOTE]GeneratePackageCode

The GeneratePackageCode property (under CG:ackage) specifies whether
to generate package code. This property supports ?smart generation? of the
package files.

Note: This property is ignored for COM/CORBA and Animation.
The possible values are as follows:

? Always?Always generate package files.
? Never?Never generate package files.
? Smart?Generate package files only when the package contains elements that will produce meaningful code.

(default = Smart)[/QUOTE]

I imagine you habe an "Initializer", a statechart, an activity diagram or something similar within your sub-packages, so that Rhapsody auto-generates initRelations and/or startBehaviour functions
... or GeneratePackageInitialization / ...Cleanup are not set to "Never".


What do your Package-.h and .c files contain anyway?
If you know their content, you know what to remove / switch off.


Cheers - Volker
Report this to a Moderator Report this to a Moderator
 6-Jun-2007 06:37
User is offline View Users Profile Print this message


Jens Konnertz

Posts: 10
Joined: 21-Feb-2007

Hi Volker,

The generated .h and .c files contain nothing despite of a #include. No code which is neccessary to compile.

So this is why I'm asking, because the behaviour is quite strange there are obviously no elements in that package.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.