[Enterprise Extensions only]

AliasDef::original_type_def

Overview

The original_type_def read and write operations provide for access and update of 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.

IDL Syntax

attribute IDLType original_type_def;

Read operations

Input parameters
none
Return values
CORBA::IDLType_ptr

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

Input parameters
CORBA::IDLType_ptr original_type_def

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.

Return values
none

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 ();