[omniORB] IDL Linked list

Duncan Grisby duncan at grisby.org
Sun Apr 13 17:22:13 BST 2008


On Friday 11 April, "mov ." wrote:

> I've googled a fair amount, and found nothing on the mailing list about
> this. How would I model a linked list in IDL? Could someone maybe point me
> to some good IDL documentation for omniORB, if there is any. I've looked at
> the C++ Language Mapping, Version 1.2 from OMG, but I haven't found anything
> there either. What I want is something that's equivalent to, and preferably
> also maps to,
> 
> typedef struct list_item_s {
>   int value;
>   struct list_item_s *next;
> } list_item_t;
> 
> Any ideas? Am I missing something obvious? Any help is appreciated.

The normal approach would be to define a sequence type in your IDL, then
write code that converted between the sequence type and your linked
list.

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list