ConstantDef
describes an IDL constant. It inherits from interface Contained
.
// IDL interface ConstantDef : Contained { attribute TypeCode type; attribute any value; };
Contained
describe()
is inherited from Contained
. It returns a structure of type Contained::Description
:
// IDL struct Description { Identifier name; any value; };The
name
member of this structure contains the string "ConstantDescription"
. The TypeCode
of the value
member is:
_tc_Constant
Description
The value
of the any
is a structure of type:
// IDL
struct Constant
Description {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
any value;
};
Contained::describe()
attribute TypeCode type;
TypeCode
of the constant. The type of a constant must be one of the simple types (long
, short
, float
, char
, string
, double
, boolean
, unsigned
long
, unsigned
short
). Note, octet
is excluded by the CORBA specification.
attribute any value;