Overview
The original_type_def read and write operations provide the means to access and update the type being aliased by an OMG IDL alias definition (AliasDef) in the Interface Repository.
Original interface | AliasDef Interface |
Exceptions | CORBA::SystemException |
The original_type_def attribute identifies the type being aliased. Read and write operations are provided with parameter definitions as defined below.
Syntax
attribute IDLType original_type_def;
Read operations
The returned pointer references an IDLType that represents the type aliased by the AliasDef. The memory is owned by the caller and can be released by invoking CORBA::release.
Write operations
This parameter is used to modify the type aliased within the alias definiton. Setting the original_type_def attribute also updates the inherited type attribute.
Example
// C++ // assume that 'this_alias' and 'this_struct' // have already been initialized CORBA::AliasDef * this_alias; CORBA::StructDef * this_struct; // change 'this_alias' to be an alias for 'this_struct' this_alias-> original_type_def (this_struct); // obtain the aliased type from the alias definition CORBA::IDLType * returned_aliased_type; returned_aliased_type = this_alias-> original_type_def ();