13.1.6 Enums

An enum in OMG IDL is mapped to an enum in C++. For example, consider the following OMG IDL definition:

// OMG IDL
module INVENT
    {
    enum Reply {ACCEPT, REFUSE};
    }

This definition maps to C++ as follows:

// C++ 
class INVENT
   {
   . . . 
   enum Reply {ACCEPT, REFUSE};
   };

The following is an example of a valid reference to the enum defined in the previous example. You refer to enum as follows:

INVENT::Reply accept_reply;
accept_reply = INVENT::ACCEPT;