Joy Global

6 posts / 0 new
Last post
Last seen: 6 years 3 months ago
Joined: 07/12/2012
Posts: 51
Reading a union (TCKind.TK_UNION) dynamically

I am having a problem to read a union from DynamicData. The problem is to read the value of the discriminator so that the member

with the valid data can be identified. I can read all the values of the member fields and of course all but one have invalid data. How does one through

the TypeCode and DynamicData API get the value of the discriminator. The closest I can get to the discriminator is to get only the TypeCode with

discriminator_type(). Can someone point me to the relevant API functions to accomplish this or have a (Java) example to share ?

Thank you

Subscribe to RSS - Joy Global