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: TAU C++ Import
Topic Summary: What does C++ Source Import Do?
Created On: 21-Nov-2006 14:07
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.
 21-Nov-2006 14:07
User is offline View Users Profile Print this message


Michelle Lee

Posts: 21
Joined: 14-Oct-2004

Hi,

I'm a newbie to TAU and I'm trying to use TAU to generate a bunch of diagrams (class diagrams, sequence diagrams, use cases, etc). I don't plan to use TAU to verify my model (i.e. compiling), I just want to use it to create some diagrams for my documentation. I know there's a C++ header file import function in TAU, but what does that do? If I do an import will it generate a bunch of artifact (diagrams) for me automatically? Or am I mistaken?

Any help/advice appreciated!

v/r,
Michelle
Report this to a Moderator Report this to a Moderator
 21-Nov-2006 14:38
User is offline View Users Profile Print this message


Charles-Henry Jurd

Posts: 4
Joined: 24-Mar-2006

Michelle,
Indeed, you can import legacy/existing C++ into TAU & TAU 2.7 will automatically generate a corresponding Class Diagram.
Open or create a project, then call File/Import/Import C/C++. Identify wether you are importing a Visual Studio/C++ project or unit files and launch! TAU will generate an "ImportedDefinitions" package containing the imported types & a "C++ Imported Types" Class Diagram.
More help in the online TAU Help/UML Import & Export/C C++ Import/Operation Principles.
Charles-Henry JURD
Report this to a Moderator Report this to a Moderator
 21-Nov-2006 15:42
User is offline View Users Profile Print this message


Michelle Lee

Posts: 21
Joined: 14-Oct-2004

Charles,

Thanks! I read the TAU help and followed their instruction but got the following error:

Diagrams.ttp Error C:\Program Files\Microsoft Visual Studio\VC98\include\errno.h(65): Syntax error.

Do you know why I might get such an error? My header files include standard files like stdio.h, errno.h, unistd.h, etc... do I need to specify where TAU should look for these files?

Thanks again for your help!

Michelle
Report this to a Moderator Report this to a Moderator
 21-Nov-2006 16:13
User is offline View Users Profile Print this message


Charles-Henry Jurd

Posts: 4
Joined: 24-Mar-2006

Michelle,
Have you set the "Dialect" to "Microsoft"?
If you are specifying a set of file instead of a MS project, then note that you need to identify IN THE REQUIRED ORDER the list of files to import you may have to specify the files needed.
If "myFunction.h" includes "Second.h", which includes "First.h", then you must specify the files to import in the following order: First.h, Second.h, myFunction.h.
Also, you may want to use the "cppImportSpecification" tagged values of the stereotyped package to customize the import (outside/after the wizard), like specifying the MSVS include directory as a preprocessor directive in the Options field.
Check the Online Help/UML to Applications/Stereotypes for Code Generation/Stereotypes/cppImportSpecification.

Hope this helps!
Charles-Henry
Report this to a Moderator Report this to a Moderator
 22-Nov-2006 13:00
User is offline View Users Profile Print this message


Michelle Lee

Posts: 21
Joined: 14-Oct-2004

Hi Charles,

Thanks! It worked!

v/r,
Michelle
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.