Re: [Orbit-python-list] How to use IDL unions with orbit-python?
Status: Inactive
Brought to you by:
tack
|
From: <ml...@kn...> - 2002-01-26 12:20:12
|
Hallo,
thanks for the quick reply!
On Fri, Jan 25, 2002 at 06:02:48PM +0100, Roland Mas wrote:
> I'm afraid I can't give you a definitive answer since I don't use
> unions, but you might consider reading the CORBA Python language
> mapping specification. I seem to remember it explains precisely the
I should have written, that I already read the spec, and
also found some examples both for orbit-python and
omniORBpy, but no document showed the use of "embedded"
enum values e.g. in a union:
module M {
union U switch (enum E { A, B }) {
case A: ...;
case B: ...;
};
};
So it's more a problem with enums than with unions,
because here I have the same problem:
module M {
struct S {
enum E { A, B } X;
};
};
I think I have to put the enum outside of the union
or the struct, but that's not so nice.
Cheers!
|