![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Generation of #include (Rhapsody C) Topic Summary: Created On: 26-Apr-2007 09:20 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Hi Simon,
I already figured out the same solution and it works perfect. ![]() Thanks for your help! Best regards Jens |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Generation of #include (Rhapsody C)
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.