10.4.8 ConstantDef Interface
A ConstantDef object (shown below) defines a named constant.
module CORBA {
interface ConstantDef : Contained {
readonly attribute TypeCode type;
readonly attribute IDLType type_def;
readonly attribute any value;
};
struct ConstantDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
VersionSpec version;
TypeCode type;
any value;
};
};
-
type
- Specifies the TypeCode describing the type of the constant. The type of a constant must be one of the simple types (long, short, float, char, string, octet, and so on).
-
type_def
- Identifies the definition of the type of the constant.
-
value
- Contains the value of the constant, not the computation of the value (for example, the fact that it was defined as “1+2”).
The describe
operation for a ConstantDef object returns a ConstantDescription.
Parent topic: Interface Repository Interfaces