[omniORB] Stub and skeleton

Frederic Prin frederic.prin at silvaco.com
Mon Jun 28 17:03:49 BST 2004


Hi everybody,


Does someone know, why IDL constant properties are only mapped into stub
(client side) and not skeleton (server side) ?

Let's omniidl this IDL file:

	interface TestInterface : public PrincipalInterface
	{
	    const string interfaceName = "SIPC_TEST_APPLICATION" ;
	    const unsigned long interfaceVersion  = 1 ;

	    void PrintAppName() ;
	} ;

I use the following omniidl flags : -bcxx -Wbs=.cxx -Wbh=.h -Wba
-Wbd=.cxx
In the stub class I get:
	class TestInterface {
	public:
	   ...<cutted>...

	  // Other IDL defined within this scope.
	  static _core_attr const char * interfaceName;

	  static _core_attr const CORBA::ULong interfaceVersion
_init_in_cldecl_( = 1U );
	};

While In the skeleton class:
	class POA_TestInterface :
	  public virtual _impl_TestInterface,
	  public virtual POA_PrincipalInterface
	


	class _impl_TestInterface :
	  public virtual _impl_PrincipalInterface
	{
	public:
	  virtual ~_impl_TestInterface();

	  virtual void PrintAppName() = 0;

	   ...<cutted>...
	};
There are no interfaceName or interfaceVersion constante defined in the
skel class.

I can understand, since it's normal the servant have no implementation
to provide for IDL constant properties.

But is there a way that omniidl also maps constant properties to the
implementation skeleton class ?


Thanks for your help


Fred



                              (
     Frédéric Prin          )
     Senior Software Engineer /
          S I L V A C O      (
     Grenoble REsearch CEnter \
     Tel 04 56 38 10 33        )
    __________________________/___
   /__/__/__/__/__/__/__/__/__/__/
  /__/__/__/__/__/__/__/__/_____/
 /__/__/__/__/__/__/__/__/__/__/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20040628/15fef0d6/attachment.htm


More information about the omniORB-list mailing list