![]() |
Overview An ArrayDef represents an OMG IDL array type. File name somir.idl Local-only True Ancestor interfaces IDLType Interface Exceptions CORBA::SystemException Supported operations ArrayDef::element_type ArrayDef::element_type_def ArrayDef::length IDLType::type
Intended Usage
The ArrayDef interface is used by the Interface Repository to represent an OMG IDL array data type. The ArrayDef is not a named Interface Repository data type (it is in a group of interfaces known as Anonymous types). An ArrayDef may be created using the create_array operation of the Repository interface, by specifying the length of the array and a CORBA::IDLType* indicating the array element type.
Since an ArrayDef object only represents a single dimenstion of an array, multi-dimensional IDL arrays are represented by multiple ArrayDef objects, one per array dimension. The element_type_def attribute of the ArrayDef representing the index that is on the farest left side of the array, as defined in IDL, refers to the ArrayDef representing the next index to the right, and so on. The innermost ArrayDef represents the rightmost index and the element type of the multi-dimensional OMG IDL array.
IDL syntax
module CORBA { interface ArrayDef:IDLType { attribute unsigned long length; readonlyattribute TypeCode element_type; attribute IDLType element_type_def; }; };
Related reference... | |
Parent: CORBA module in Object Request Broker | |
ArrayDef::element_type | |
ArrayDef::element_type_def | |
ArrayDef::length | |