Hello Sriv,
Have you tried reverse engineering this code into Rose (I'm assuming ANSI
C++).
Anyway, to declare an enum you
1. Create a class as you would normally.
2. You then open the class specification.
3. Under the General tab you type enum into the stereotype field.
4. Within the attributes tab you specify each of the enum names and values.
5. Ensure they are public as all enum values are public in this case.
And viola, you have an enum you can use in other classes.
If you want it nested inside another class as you have it in you code you
just put it there by dragging and dropping.
Thanks,
=======================
James Hart
Rose Technical Support
Rational Software
=======================
-----Original Message-----
From: Srivatsan Chakravarthy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 4:22 PM
To: [EMAIL PROTECTED]
Subject: (ROSE) declaring enums inside class
I've been trying to find a way in Rose to represent a
set of enums within a class. Does anyone know how to
do this ? The code I have in mind is as follows:
class MyEnums {
public:
enum First { FIRST1=1, FIRST2, FIRST3 };
enum Second { SECOND1=1, SECOND2 } ;
private:
MyEnums() {}
}
Thanks!
Sriv
=====
-Sriv
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
************************************************************************
* 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
*
*************************************************************************