[omniORB] IDL Question

Duncan Grisby dgrisby@uk.research.att.com
Mon, 07 Jun 1999 09:30:42 +0100


On Sunday 6 June, "ryan.tecco" wrote:

> I have a situation like this: (in C++)
> 
> struct OneThing
> {
>   int counter;
> }
> 
> struct SecondThing
> {
>   OneThing things[5];
> }
> 
> How does this translate into IDL?

Exactly like that, except that int isn't an IDL type, and you need to
end your struct definitions with semi-colons like:

 struct OneThing {
   long counter;
 };

 struct SecondThing {
   OneThing things[5];
 };


HTH,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --