[omniORB] Virtual Function for the Subs

Duncan Grisby duncan@grisby.org
Mon Feb 24 20:13:01 2003


On Monday 24 February, Malge Nishant wrote:

> 	What is the reason that omniORB doesn't provide mapping for client
> stubs with Virtual Functions? All the ( Mapped IDL )functions in stub class
> are non-virtual. ORBacus & VisiBroker does so. This helps us to add one more
> abstraction layer over the client stubs and add some logic too.
> 	Or is it as per the C++ Mapping specification?

The C++ mapping doesn't have anything to say about the matter, so
either is permitted. omniORB doesn't use virtual functions by default,
since they are slightly slower than non-virtual ones, and most people
have no reason to need them.

As luck would have it, omniidl can output the functions as virtual.
Just use the (undocumented) -Wbvirtual_objref switch after -bcxx.

Cheers,

Duncan.

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