[omniORB] Stub and skeleton
Alex Tingle
alex.tingle at bronermetals.com
Mon Jun 28 17:05:51 BST 2004
On 28 Jun 2004, at 15:03, Frederic Prin wrote:
> Does someone know, why IDL constant properties are only mapped into
> stub
> (client side) and not skeleton (server side) ?
You are supposed to use the client side stubs on the server too. If you
examine the server stubs you'll find that they depend upon the 'client'
stubs.
-Alex Tingle
--
Dammit Jim, I'm a programmer... not a mind reader!
On 28 Jun 2004, at 15:03, Frederic Prin wrote:
> 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 )
> __________________________/___
> /__/__/__/__/__/__/__/__/__/__/
> /__/__/__/__/__/__/__/__/_____/
> /__/__/__/__/__/__/__/__/__/__/
>
> _______________________________________________
> 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