[Enterprise Extensions only]

CORBA module: ConstantDef Interface

Overview The ConstantDef interface defines a named constant.
File name somir.idl
Local-only True
Ancestor interfaces Contained Interface
Exceptions CORBA::SystemException
Supported operations ConstantDef::describe
IDLType::type
ConstantDef::type_def
ConstantDef::value


Intended Usage

The ConstantDef interface is used within the Interface Repository to represent a constant as defined within OMG IDL. An instance of a ConstantDef object defines the data type of the constant, the constant value, and the constant name. A ConstantDef object can be created using the create_constant operation of the Container interface.

IDL syntax

  module CORBA
     {
        interface ConstantDef:Contained
           {
              readonlyattribute TypeCode type;
              attribute IDLType type_def;
              attribute anyvalue;
           };
        struct ConstantDescription
           {
              Identifier name;
              RepositoryId id;
              VersionSpec version;
              TypeCode type;
              anyvalue;
           };
     };