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: Generation of #include (Rhapsody C)
Topic Summary:
Created On: 26-Apr-2007 09:20
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.
 26-Apr-2007 09:20
User is offline View Users Profile Print this message


Jens Konnertz

Posts: 10
Joined: 21-Feb-2007

Hi again,

following problem:

I reverse engineered a headerfile (i.e. ethernetDrv.h) into my model as "use as external". I moved the generated file to a different package (Software/Driver).

If I now define an usage dependency to that file, it will generate
#include <Software/Driver/ethernetDrv.h> (property GenerateDirectoryPerModelElement set to true).

But I like to have #include <ethernetDrv.h>!

Does anybody have a solution for that, besides switching off the GenerateDirectoryPerModelElement property.

Thank you very much and best regards
Jens
Report this to a Moderator Report this to a Moderator
 3-May-2007 08:36
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi Jens

This works in RiCpp, so give it a try in RiC:
[list=1]
[*]Remove ethernetDrv (or the whole Drivers package, if it only contains externals) from the scope of your component.
[*]Create a new component called, say, Externals.
[*]Add ethernetDrv (or the Drivers package) to the scope of this new component.
[*]Generate your component. (No need to generate the Externals component.)
[*]You should find that your #includes are generated as required.
[/list]

Initially, I thought this would only work if GenerateDirectoryPerModelElement was set false for the Externals package. In fact, that setting does not seem to make a difference...

Let me know how you get on!

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 7-May-2007 12:53
User is offline View Users Profile Print this message


Jens Konnertz

Posts: 10
Joined: 21-Feb-2007

Hi Simon,

I already figured out the same solution and it works perfect.

Thanks for your help!

Best regards
Jens
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.