Overview | The element_type_def read and write operation allow the access and update of the element type definition of a sequence definition (SequenceDef) in the Interface Repository. |
Original interface | SequenceDef Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The type of the elements within a sequence definition is identified by the element_type_def attribute (a reference to a CORBA::IDLType *). Setting the element_type_def attribute also updates the element_type attribute as well as the inherited type attribute.
Syntax
attribute IDL/Type 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 SequenceDef object. The returned object is owned by the caller and can be released using CORBA::release.
Write operations
The element_type_def parameter represents the new sequence element definition for the SequenceDef.
Example
// C++ // assume that 'this_sequence' and 'this_union' have already been // initialized CORBA::SequenceDef * this_sequence; CORBA::UnionDef * this_union; // change the sequence element type definition to 'this_union' this_sequence-> element_type_def (this_union); // read the element type definition from 'this_sequence' CORBA::IDLType * returned_element_type_def; returned_element_type_def = this_sequence-> element_type_def ();