I do this using an inner class of stereotype enum. Then the elements of the
enum are public attributes with default values.

-- Joel

|-----Original Message-----
|From: Srivatsan Chakravarthy [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, March 06, 2001 5: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
************************************************************************
* 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