[omniORB] Corba union waste of space?

Michael Teske subscribe at teskor.de
Tue Jan 6 16:45:49 GMT 2009


Michael Teske wrote:
 [...]
> Hi Bruce, hi Duncan,
> 
> finally I found the time to do it. Unfortunately I ran into 2 problems, one can be
> solved with an ugly trick, but for the other one I can't find an easy solution:
> 
> 1. (difficult): In skutil.py/unmarshall I need to find out if a string (or other
> types, to be done later) is a member of a union or not (in the first case I have
> to cast the char array to ::CORBA::String_member * and dereference it, in the
> other case I leave the code as it is), but I cannot find a way to get this info.

Ok, I found it for 1. Wasn't so difficult after all. That leaves just the ugliness
of 2.

Greetings,
  Michael


> 2. (ugly trick): In order for placement new to work 100% correct, I need to call
> destructors explicitely. Unfortunately I only have the type name
> :CORBA::String_member and need to call ~_CORBA_String_member(), because it's a
> typedef. My ugly hack is to replace ::CORBA:: with _CORBA_, but I really do not
> like it, as it will probably break with other types.
> 
> 
> Any ideas?
> 
> Greetings,
>   Michael
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list