A ConstantDef object defines a named constant. It inherits from the Contained interface.
module CORBA {
interface ConstantDef : Contained {
readonly attribute TypeCode <type>;
attribute IDLType type_def;
attribute any <value>;
};
};
The describe( ) operation returns a structure of type Contained::Description.
struct Description {
DefinitionKind <kind>;
any <value>;
<kind>CORBA::dk_Constant.
<value>ConstantDescription structure:
struct ConstantDescription {
Identifier <name>;
RepositoryId <ID>;
RepositoryId defined_in;
TypeCode <type>;
any <value>;
};
TypeCode of <value> is _tc_CORBA_ConstantDescription.The type specifies the TypeCode of the constant. It must be a simple type: long, short, float, char, string, octet, double, boolean, unsigned long, or unsigned short.
attribute TypeCode <type>;
The type_def attribute identifies the definition of the type of the constant.
attribute TypeCode <type>;
The value of the constant is contained in <value>.
attribute any <value>;