Charlie,
I don't believe that this can be done.
I tested this out, i.e. I generated code for class B and then edited B.h to
show the class declaration as follows:
class B: public A {
};
Now when you reverse engineer the code back into Rose you get errors that
read as follows:
13:53:03| Error: Can't establish link reference A in scope B - No matching
supplier defined.
Subsequent generation of code for class B causes the A.h to revert back to
this:
class B
{
};
I think that you might need to create a dummy class called A in your model
and draw a generalization relationship between B and A for this to work.
Vishu
**********
Annamalai "Vishu" Viswanathan -- [EMAIL PROTECTED]
Senior Technical Support Engineer
Rational Customer Service - Committed to Service Excellence
SCP Certified: http://www.rational.com/support/scp.jsp
Rational User Conference 2002.....Freedom to Create!
Call for Papers Now Open at http://www.rational.com/ruc
August 18-22, 2002
Lake Buena Vista, Florida
**********
-----Original Message-----
From: Charlie Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: (ROSE) how to designate inheritance from a class not in the model
I have a class in my model (say class B) which is derived from a
class not known in the model (say class A). How do I
get the code generator to put the base class designation
into the class header file, i.e. to generate:
class B: public A {
};
I'm using the ansi c++ add-in. Of course, at present
it creates:
class B {
};
Thanks,
Charlie
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
* http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* 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
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
* http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
* To: [EMAIL PROTECTED]
* Subject: <BLANK>
* Body: unsubscribe rose_forum
*************************************************************************