UnionDef::discriminator_type

Overview The discriminator_type operation returns TypeCode information representative of the discriminator of an Interface Repository UnionDef object.
Original interface UnionDef Interface
Exceptions CORBA::SystemException


Intended Usage

The discriminator_type attribute describes and identifies the union's discriminator type. The discriminator_type attribute can be accessed using the discriminator_type read operation. The discriminator_type attribute can only be changed by updating the discriminator_type_def attribute.

Syntax

  readonly attribute TypeCode discriminator_type;

Input parameters

None.

Return values

TypeCode_ptr
The returned value is a pointer to a TypeCode that represents the type of the union discriminator. The memory is owned by the caller and can be released by invoking CORBA::release.

Example

  // C++
     // assume that 'this_union' has already been initialized
     CORBA::UnionDef * this_union;
 
     // retrieve the TypeCode information that represents 
     // the union discriminator
     CORBA::TypeCode * unions_discriminator_tc;
     unions_discriminator_tc = this_union-> discriminator_type();

Related reference
CORBA module



Searchable topic ID:   rcor_modun1
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_modun1.html

Library | Support | Terms of Use | Feedback