[omniORB] Confusion with generated out parameters in omniidl

Duncan Grisby dgrisby@uk.research.att.com
Fri, 02 Feb 2001 14:08:34 +0000


On Friday 2 February, jnye@micro-optics.com wrote:

>   virtual void op3(_CORBA_ObjRef_OUT_arg< _objref_InterfaceOne,
> InterfaceOne_Helper > iface1) = 0;

[...]
> Op1, op2 and op3 were all generated as I expected them to be, but op3 has a
> strange looking template thingy when I was expecting the parameter to be of
> type InterfaceOne_out. Doesn't the CORBA standard specify _out suffix?

If you look higher up in the stub .hh file, you'll see

  typedef _CORBA_ObjRef_OUT_arg< _objref_InterfaceOne,
      InterfaceOne_Helper > InterfaceOne_out;

So they are actually the same type. It's a bit odd not to use the _out
type name in the skeleton signature, but I don't think it does any
harm.

Cheers,

Duncan.

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