[omniORB] Missing POA class if an interface is defined within module. MSVC 6, Win2k.

Luke Deller ldeller at xplantechnology.com
Thu Oct 7 22:41:48 BST 2004


Hi Alexander,

In the latter example, you want to inherit from POA_hallo::Hello
(ie a class called Hello within a namespace called POA_hallo).

A good reference for this kind of stuff is the C++ language mapping spec:
     http://www.omg.org/technology/documents/formal/c++.htm

Regards,
Luke.

Alexander Georgiev wrote:
> Hi,
> perhaps it is a FAQ.
> 
> if I have a Hello.idl with the folloing contents:
> ________________________________________
> 	interface Hello
> 	{
> 		string sayHello(in string argument);
> 		oneway void shutdown();
> 	};
> ________________________________________
> 
> compile it to c++:
> 
> $/cygdrive/d/work.d/corba/omniORB-4.0.4/bin/x86_win32/omniidl.exe -T
> -bcxx -Wbh=.hpp -Wbs=.cpp Hello.idl
> 
> There is a POA_Hello class defined in Hello.hpp:
> 
> $ grep POA Hello.hpp
> class POA_Hello :
>   virtual ~POA_Hello();
> 
> Using inheritance from POA_Hello, I can implement a servant.
> 
> But, if I define interface Hello within a module:
> 
> module hallo
> {
> 	interface Hello
> 	{
> 		string sayHello(in string argument);
> 		oneway void shutdown();
> 	};
> };
> 
> then compile it:
> 
> $/cygdrive/d/work.d/corba/omniORB-4.0.4/bin/x86_win32/omniidl.exe -T
> -bcxx -Wbh=.hpp -Wbs=.cpp Hello.idl
> 
> and search for a POA_Hello class:
> 
> $ grep POA Hello.hpp                                                            
> _CORBA_MODULE POA_hallo
> 
> There is no POA_Hello class defined. Is this a bug or I am not doing
> something right?
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 
> 



More information about the omniORB-list mailing list