Python datastructure -> Corba IDL
Sascha Matzke
sascha at bespin.bespin.escape.de
Sun Feb 20 11:28:11 EST 2000
Hello,
On 19 Feb 2000, Samuel A. Falvo II <kc5tja at garnet.armored.net> wrote:
>In article <slrn8at0ld.a02.sascha at bespin.three.signals.de>, Sascha Matzke wrote:
>>how can I represent the following datastructure in Corba IDL...
>>
>>([{},{},...],0)
>>
>>a tuple of a list of dictonaries and an integer...
>
> // NOTE: CORBA hasn't a clue as to what a "dictionary" or other
> // associative arrays are, so your software will need to build these
> // data structures manually. Ie., it'll require some amount of
> // "custom marshaling" on your part.
>
> struct DictEntry
> {
> string key;
> any data; // I'm not sure what you're storing here...
> };
>
> // From this point on, CORBA can handle everything else.
>
> typedef sequence<DictEntry> Dictionary;
> typedef sequence<Dictionary> DictionaryList;
>
> struct MyStruct
> {
> DictionaryList list_of_dic;
> long integer;
> };
And how do I represent this thing in python... I can't simply return the
datastructure above ([{},{},...],0)....
Sascha
--
.-> Sascha Matzke - sascha at bespin.de ------------------------.
`-- On this earth for 24 years, 129 days <----------------'
More information about the Python-list
mailing list