-
Key: CORBA24-180
-
Legacy Issue Number: 4005
-
Status: closed
-
Source: Triodia Technologies Pty Ltd ( Michi Henning)
-
Summary:
given the a DynUnion value, I want to find out whether the discriminator
currently indicates the default case. For example:union u switch (long)
{ case 0: long l; case 1: char c; case 2: double d; default: float f; };
For this union, I want to know whether the default member is active, that is,
whether the discriminator has a value other than 0, 1, or 2.Finding out whether the discriminator indicates the default case is currently
rather difficult. I have to:1) get the union type code
2) collect the values of all the explicit case labels from
the type code
3) check if the discriminator currently has a value that is not
one of the explicit case labels valuesIt would be much nicer to add the following to DynUnion:
interface DynUnion : DynAny
{ boolean is_set_to_default_case(); // ... };
The is_set_to_default_case operation returns true if a union has
an explicit default label and the discriminator value does not
match any of the union's other case labels. -
Reported: CORBA 2.4 — Mon, 30 Oct 2000 05:00 GMT
-
Disposition: Resolved — CORBA 2.4.2
-
Disposition Summary:
Add the is_set_to_default_member function with the functionality as described for is_set_to_default_
-
Updated: Fri, 6 Mar 2015 21:38 GMT