Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Source module access
Topic Summary:
Created On: 9-Feb-2004 21:50
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
Answer This question was answered by Louie Landale, on Tuesday, February 10, 2004 2:35 PM

Answer:
DOORS v5 introduced a DOORS file hierarchy so modules are no longer in the project root folder. Never-the-less, some people at Telelogic/QSS seem to cling to the old notion, where a Module Name was just its base name. There are a few of these silly commands that deal with module base names. They are useless. The "for srcModName in link" loop is one of them, since it ONLY works if all the source references are in the "current" folder, whatever that is.

// Load all source modules. Use this loop before
// a more usefull "for link in obj <- "*" do" loop.

ModName_ srcRef
for srcRef in obj <- "*" do
{ srcMod = fullName(srcRef)
yaddy...
}

The "string Source = source(link)" and "string Target = target(link)" are likewise useless; use
"ModName_ Source = source(link)" and "ModName_ Target = target(link)".

Always keep track of modules with "Module", "ModName_", or its FULLname. Use (unqualified) base name only for displaying purposes.

- Louie
 9-Feb-2004 21:50
User is offline View Users Profile Print this message


Bobbette Parker

Posts: 12
Joined: 22-Nov-2002

How can I access the full path of a source file that is contained in another folder or another project? I am trying to count all incoming links from the target file. I am able to access those links that are contained in the same folder as the target module but the others are omitted.

string srcModName
for srcModName in o<-"*" do {
string srcMod = fullName(srcModName)
if (!open module srcMod)
read (srcMod, false)

//print srcMod "\n"
}
The above code results in an error. Can someone please help.

Bobbette
Report this to a Moderator Report this to a Moderator
 9-Feb-2004 22:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
DOORS v5 introduced a DOORS file hierarchy so modules are no longer in the project root folder. Never-the-less, some people at Telelogic/QSS seem to cling to the old notion, where a Module Name was just its base name. There are a few of these silly commands that deal with module base names. They are useless. The "for srcModName in link" loop is one of them, since it ONLY works if all the source references are in the "current" folder, whatever that is.

// Load all source modules. Use this loop before
// a more usefull "for link in obj <- "*" do" loop.

ModName_ srcRef
for srcRef in obj <- "*" do
{ srcMod = fullName(srcRef)
yaddy...
}

The "string Source = source(link)" and "string Target = target(link)" are likewise useless; use
"ModName_ Source = source(link)" and "ModName_ Target = target(link)".

Always keep track of modules with "Module", "ModName_", or its FULLname. Use (unqualified) base name only for displaying purposes.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
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.