Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic TAU (steve huntington)
Decrease font size
Increase font size
Topic Title: Importing C++ source
Topic Summary: Importing legacy C++ into existing model.
Created On: 9-Jan-2006 09:57
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.
 9-Jan-2006 09:57
User is offline View Users Profile Print this message


Dan Smithers

Posts: 7
Joined: 6-Jan-2006

I have converted a large existing design from Rational Rose to Tau. There has been some development that has not been modelled and I want to import this from C++ source.

I have set the pre-processor to a script that calls gcc. The problem is that this pre-processor then tries to descend into all the included files, and eventually finds a problem.

Is there a way of preventing the pre-processor from looking into include files? Ideally, I want to specify the header files to model and not worry about the ones that are not on the list.

thanks

dan

Edited: 11-Jan-2006 at 11:34 by Dan Smithers

Report this to a Moderator Report this to a Moderator
 9-Jan-2006 14:05
User is offline View Users Profile Print this message


Dan Smithers

Posts: 7
Joined: 6-Jan-2006

I have managed to get the class structure into Tau.

I wrote a script mygcc.bat

@set PATH=C:\cygwin\bin;%PATH%
gcc -E -CC -v -D"PFM_CONFIG_HEADER=\"pfmcfg.h\"" -x c++ -dI %1 > %2.i
@copy %2.i %2

I have to hand-craft the imported files to include all that is necessary, which is a lot harder work than othe UML tools.

Unfortunately, all the comments in the code are lost, instead of being added as notes on the imported elements

Edited: 11-Jan-2006 at 11:37 by Dan Smithers

Report this to a Moderator Report this to a Moderator
 23-Jan-2006 12:20
User is offline View Users Profile Print this message


Greg Gorman

Posts: 75
Joined: 4-Oct-2002

Hi Dan,
We are working to improve the C++ capturing system in the next release of TAU. This is one of the areas we are seeking to improve.

Greg

-------------------------
Greg Gorman
Vice President, Product Management
Modeling and Test Products
Telelogic AB
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic TAU forum.
There are currently 1 users logged in.
The most users ever online was 15 on 31-Mar-2008 at 16:22.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

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