10.4.8 ConstantDefインタフェース
次に示すConstantDefオブジェクトは、名前の付いた定数を定義します。
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 - 定数の型を記述するTypeCodeを指定します。定数の型は、単純な型(long、short、float、char、string、octetなど)の1つとします。
-
type_def - 定数の型定義を識別します。
-
value - 定数の値が含まれます。値の計算(たとえば、「1+2」と定義されたという事実)は含まれません。
ConstantDefオブジェクトの describe操作は、ConstantDescriptionを返します。
親トピック: インタフェース・リポジトリのインタフェース