Overview | The element_type_def read and write operations allow the access and update of the element type definition of an array definition (ArrayDef) in the Interface Repository. |
Original interface | ArrayDef Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The type of the elements within an array definition is identified by the element_type_def attribute.
Syntax
attribute IDLType element_type_def;
Read operations
The returned object is a pointer to a copy of the IDLType referenced by the element_type_def attribute of the ArrayDef object. The returned object is owned by the caller and can be released by invoking CORBA::release.
Write operations
The element_type_def parameter represents the new element definition for the ArrayDef.
Example
// C++ // assume that 'this_array' and 'this_union' have already been initialized CORBA::ArrayDef * this_array; CORBA::UnionDef * this_union; // change the array element type definition to 'this_union' this_array-> element_type_def (this_union); // read the element type definition from 'this_array' CORBA::IDLType * returned_element_type_def; returned_element_type_def = this_array-> element_type_def ();