Since you start with saying that enum is not supported in CV++ ???
 
I would model them as attributes.
Stereotype the class as <<enum>>
 
 
In the classic C++ code generator you would set the enum type and values in the code generation properties.
 
 
-----Original Message-----
From: David R. Stockwell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 9:24 AM
To: '[EMAIL PROTECTED]'
Subject: (ROSE) enum types

Hello all,
 
I noticed in the help file, enum types are unsupported for VC++. 
 
How do I specify an enum type in my rose model?  According to help I just name the class as
 
<<enum>> myenumtype
 
 
How/where do I put the (items and)  values associated with each of the enumerated items?
 
as in
 
enum x
{
   x_unassigned = 0,
   x_something=1,
   x_other = 2,
   // etc
};
 
Thanks in advance
 
David Stockwell

Reply via email to