Mike,

 

Depends on the add-in that you are using.  For the ANSI add-in you can simply stereotype the method as a "const".  For the VC++ add-in you can open the Model Assistant for the method and check the const check box.  For the (Classic) C++ add-in you open the operation specification dialog and under the C++ tab set the OperationIsConst property to True.

 

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: Mike Johnston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:54 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Const methods in Rose

 

Hi,

 

    How can I have const methods in Rose? I am trying to have something like "int display () const;".

 

best regards

Mike

----- Original Message -----

To: 'Reuben Walraven' ; [EMAIL PROTECTED]

Sent: Tuesday, May 28, 2002 9:44 PM

Subject: RE: (ROSE) Cloning a class

 

Reuben,

 

You should be able to clone classes using the Class Wizard.  Just do a Tools->Class Wizard and follow the wizard.

 

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: Reuben Walraven [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 1:01 PM
To: [EMAIL PROTECTED]
Subject: (ROSE) Cloning a class

 

Hi I am in the process of creating a Object Diagram and I know of the deficiencies of Rose in this area since you are not able to enter attribute values in a Collaboration Diagram.  To work around this problem, I would like to be able to clone (not copy) a class and input values for the properties, ex. Xxxx=”123”.  Is there anyway I can clone a class A to class B where the changes I make to Class B is not reflected in Class A? 

 

Thanks

 

Reuben

 

ReubX

www.reubix.com

Revolution Protocol X.

Reubix Systems

 

Reply via email to