DynamicAny::DynUnion - The API for dynamic unions.
See DynamicAny::DynAny.
This is a specialization of DynAy specifically for unions.
component_count
- return 1 if there is no active member and 2 if there
is.
discriminator_kind
- Return the CORBA::TCKind of the CORBA::TypeCode of
the discriminator.
get_discriminator
- Return discriminator as a DynAny.
has_no_active_member
- Returns true if there is no active member.
member
- Returns the DynAny that represents the currently active
member. A DynamicAny::DynAny::InvalidValue exception will be thrown if
there is no active member.
member_kind
- Returns the CORBA::TCKind of the CORBA::TypeCode of the
active member. A DynamicAny::DynAny::InvalidValue exception will be thrown
if there is no active member.
member_name
- Returns the name of the active member. A
DynamicAny::DynAny::InvalidValue exception will be thrown if there is no
active member.
set_discriminator
- Set the discriminator for this union. A
DynamicAny::DynAny::TypeMismatch exception will be thrown if the typecode
is not equivalent to the current discriminator typecode. The current
member is deactivated and the member corresponding to the new
discriminator is activated.
set_to_default_member
- Deactivate the current member and activate the
default member. A DynamicAny::DynAny::TypeMismatch exception will be
thrown if there is no default member.
set_to_no_active_member
- Deactivate the current member.