[Enterprise Extensions only]

C++ bindings for CORBA Enumerations

An IDL enum is mapped to a corresponding C++ enum. For example, given the following IDL:

module M 
{
   enum Color 
   { 
      red, green, blue 
   };
};

A C++ programmer could introduce a local variable of the corresponding C++ type and initialize it with the following code:

{
   M::Color MYCOLOR = M::red;
}

The enumeration constant red is not denoted using the expression M::Color::red. For this reason, names of enumeration constants must be carefully chosen.