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: C++ API of Tau G2 Developer
Topic Summary: What is right API to use to get the definitions 'syntype x=Integer Constants (0..50) ;'
Created On: 23-Aug-2005 12:29
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-Aug-2005 12:29
User is offline View Users Profile Print this message


Bhaskar Rao G

Posts: 1
Joined: 25-Jul-2005

Hi,

I could get the name, type and also meta feature using the Tau C++ API while parsing the U2 file. Is there any way to the GUID of the type and also constants clause details using the Tau C++ API.

Report this to a Moderator Report this to a Moderator
 16-Nov-2005 06:29
User is offline View Users Profile Print this message


Patrick Geremia

Posts: 6
Joined: 1-Jul-2003

Have you installed the SDK? This addin is a debugger that allows you to browse in a debug mode though the model.
Report this to a Moderator Report this to a Moderator
 24-Jan-2006 08:49
User is offline View Users Profile Print this message


Mattias Mohlin

Posts: 6
Joined: 24-Jan-2006

The debugger (DbgView) that comes with the SDK is often all you need to browse the structure of a model. However, it has a limitation that it doesn't show all information that is available on references. It only shows the target definition if the reference is bound.
In your example the "Type" metafeature of the syntype would show "Integer" in the debugger.
However, in general a reference (e.g. the type reference) can contain much more information,
such as actual template parameters, scope qualifiers etc.
To get complete information about a reference you can use the GetReference API operation.
The following Tcl script supplements the model debugger by showing full reference information for
the selected entity:
set r [u2::GetReference [std::GetSelection] "Type"]
std::output [u2::XMLEncode $r]

The output can look like this:

http://www.telelogic.com/tau">





If the reference is bound (like in this example) the GUID of the target definition is present as shown above. But in that case it is of course also possible to navigate to the type directly (GetEntity)
and then access the guid from it (GetValue).

Edited: 24-Jan-2006 at 08:49 by Mattias Mohlin
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic TAU forum.
There are currently 0 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 0 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.