[omniORB] Passing dictionary.

Kevin Wooten kwooten@itracs.com
Fri Jun 21 01:03:01 2002


Yes the CORBA "any" can hold ANY type that has been defined in IDL, and the standard CORBA types as well. Just be wise to the fact that to use "any"s from c++ you need to call omniidl with the "-Wba" option to use this feature; it is automatic in Python.

>> -----Original Message-----
>> From: Alexander Deruwe [mailto:aderuwe@aqs-carcontrol.be]
>> Sent: Thursday, June 20, 2002 7:09 AM
>> To: omniorb-list@realvnc.com
>> Subject: Re: [omniORB] Passing dictionary.
>> 
>> 
>> On Thu, Jun 20, 2002 at 08:47:25AM -0400, William Noon wrote:
>> > 	struct NameAnyPair {string name; any value};
>> > 	typedef sequence<NameAnyPair> FieldsDict;
>> > 
>> > This requires that all keys in the dictionary to be 
>> strings but the values
>> > can be any object (defined in the idl).
>> 
>> My question is totally offtopic (well, almost :), but it -seems- to
>> clear up a great misunderstanding I had about the any type.
>> 
>> Am I correct in reading your comment as: an any type can 
>> become struct
>> or 'typedef sequence' that is defined in the IDL?
>> 
>> I never could get the any type to work, and this would explain why; I
>> just didn't get it.
>> If this is true, it might make my IDL a lot more readable.
>> 
>> Cheers,
>> 
>> -- 
>> Alexander Deruwe
>> AQS-CarControl
>> _______________________________________________
>> omniORB-list mailing list
>> omniORB-list@realvnc.com
>> http://www.realvnc.com/mailman/listinfo/omniorb-list
>>