NonStop Serverware

EnumDef

Previous Topic | Next Topic | Contents | Index
Getting Started | Administration Guide | Programmer's Guide

Subtopics

EnumDef Syntax
EnumDef Description

An EnumDef represents an OMG IDL enumeration definition.

EnumDef Syntax

module CORBA {
typedef sequence <Identifier> EnumMemberSeq;

    interface EnumDef : TypedefDef {
    attribute EnumMemberSeq <members>;
    };
};

EnumDef Description

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.

See Also

Contained

Previous Topic | Next Topic | Contents | Top
Getting Started Guide | Administration Guide | Programmer's Guide
Bibliography | Glossary | Index
© Tandem, a division of Compaq. All rights reserved. Legal notices.