[omniORB] general question about stubs

Duncan Grisby dgrisby@uk.research.att.com
Fri, 10 Aug 2001 10:02:19 +0100


On Tuesday 7 August, "Sveta Shasharina" wrote:

> When I look at the stub class (like Echo) I see many public methods.  Some
> of them are definitely used in the client code (like _narrow, _nil,
> _duplicate...).  But some (like_marshalObjRef and _unmarshalObjRef) do not
> seem to be used in the client explicitly.  If so, why are they public?

Those functions are used by other stubs. If you declare an operation
which returns an Echo object reference, the stub for it calls
Echo::_unmarshalObjRef() to unmarshal the object reference.

Cheers,

Duncan.

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