[omniORB] Naming Service header file

Duncan Grisby duncan@grisby.org
Mon Feb 17 12:26:02 2003


On Wednesday 12 February, Olivier Boudeville wrote:

> I have a very simple question (I am an omniorb newbie) : with 
> omniORB-4.0.0, in /src/examples/echo/eg3_clt.cc, I can see that the 
> Naming Service is used (CosNaming::NamingContext_var rootContext;) but 
> only echo.hh is included, and it seems to only include CORBA.h. Does the 
> OMG standard demands that header files about the Naming Services should 
> be included in all cases, even in the case where the interface does not 
> use it ?

The CORBA spec and C++ mapping spec are totally silent on what headers
you need to include. In omniORB, the naming service definitions are
always available; in other ORBs they are not.

> More directly, if I am to use the Naming Service, I do not need with 
> omniorb to add any specific include files ?

Correct. #including CORBA.h, either directly or indirectly via a stub
header like echo.hh is sufficient.

Cheers,

Duncan.

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