AliasDef::original_type_def

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

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


Related reference
CORBA module



Searchable topic ID:   rcor_modal1
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modal1.html

Library | Support | Terms of Use | Feedback