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: Forward Declaration Problem on target
Topic Summary:
Created On: 23-Oct-2008 11:14
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.
 23-Oct-2008 11:14
User is offline View Users Profile Print this message


mike t

Posts: 14
Joined: 7-Dec-2007

I am using RiC 7.0 and i am having a problem when compiling the sourcecode for OSEepsilon with the tasking compiler.

Rhapsody generates a forward decleration of the "object" for every aggregation.

eg. if I aggregate a Display with a HMI Class in the OMD then Rhapsody creates a

the output:
struct HMI;

in the Display.h file

In C this would not be necessary because by including the HMI.h file in the Display.h, the object already knows the struct HMI because its declared in HMI.h via a typdef.

Normally this forward declaration is no problem, but the tasking compiler does not allow it.
is there a possibility to keep Rhapsody from creating it?

regards mike
Report this to a Moderator Report this to a Moderator
 23-Oct-2008 12:04
User is offline View Users Profile Print this message


Alistair Prentice

Posts: 1
Joined: 8-Jun-2006

Mike.

I'm primarily a RiC++ user but I think the mechanism is the same in RiC. The property CG::Relation::Dependency controls whether a forward declaration or #include is generated in the .h file of the aggregator. Set to "Strong" to remove the forward declaration. Also check out the CG::Dependency::Usage type property. Which one of these properties is invoked depends on how you've drawn the relationship on your OMD.

Cheers,

Alistair
Report this to a Moderator Report this to a Moderator
 24-Oct-2008 13:48
User is offline View Users Profile Print this message


mike t

Posts: 14
Joined: 7-Dec-2007

Seems like setting the property to strong was the solution!
Many thanx for that quick reply.

best regards,
Mike
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.