I hope I'm not too late.

In order for the dependency you mentioned in your email to be created, you
will have to modify the Export Options.  On the "Relationships" tab of C++
analyzer, check
"Create Uses Relationships to each Type Referenced in the Declaration
of...", and then check the "Methods" boxes.  This will cause the dependency
to class B to be created.

A good document on C++ analyzer problems can be found in
http://www.rational.com/technotes/rose_html/Rose_C++_html/technote_2714.html
where answers on usual problems in C++ reverse engineering are addressed.

Hope this helps.

Andrea Scaggiante
Software Engineer
Tecnomare SpA - Robotics & Subsea
Via Enrico Caviglia 11
20139 Milano ITALY

Tel +39-02535751
Fax +39-0255211952
E-mail: [EMAIL PROTECTED]
Web: http://www.tecnomare.it
----- Original Message -----
From: Schoenhaar Oliver (QI/CCT22) * <[EMAIL PROTECTED]>
To: rose_forum@Rational. Com (E-Mail) <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 8:54 AM
Subject: (ROSE) Dependencies and Revers Engineering with Rose



Hello,

according to my knowledge Dependency-relationships of classes (i.e. class A
has a dependency to class B) are used in the following cases:
- There is a global Variable of Class B which is used from objects of Class
A (C++ not JAVA)
- There is an object of class B locally declared in a methode of Class A
- There is a parameter of class B in a methode of class A.
I made a simple example (see below) to test ifRose is capable to reverse
engineer such relationships. But Rose wasn't able to do it. What is the
reason for this? I would have expected that Rose is capable of doing that.


package testDependency;

public class A
{
  void test(B b)
{
C c = new C();
}
}

class B
{
}

class C
{
}



> Mit freundlichen Grüßen / Best regards
> Oliver Schönhaar
> _____________________________________
> Robert Bosch GmbH, QI/CCT22
> 70469 Stuttgart-Feuerbach - Wiener Str. 42 - Fe 055/3
> Tel.:     ++49 711 811 - 31280       (BCN 9020 - 31280)
> Fax:     ++49 711 811 - 263740  (BCN 9020 - 263740)
> mailto:[EMAIL PROTECTED]
> New: Visit us at: http://www.intranet.bosch.de/qi/asn
>
>
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to