An EnumDef
represents an OMG IDL enumeration definition.
module CORBA { typedef sequence <Identifier> EnumMemberSeq; interface EnumDef : TypedefDef { attribute EnumMemberSeq <members>; }; };
The <members>
attribute is a list of enumerated constants. It contains a distinct name for each possible value of the enumeration. Setting the members attribute updates the type attribute.
The Contained::name
attribute is inherited and it holds the name of the enumerated type.
The result of calling a Contained::describe( )
on an EnumDef
is that the returned Contained::Description
struct has the following members: kind
becomes dk_Enum
, and value
becomes an any
containing a TypeDescription
struct.