[omniORB] generated impl class to use Module as namespace

Frédéric Prin frederic.prin@silvaco.com
Wed, 14 Nov 2001 12:00:17 +0100


Hello,

thanks for your reply !
I had missplaced the virtual inheritance... shame on me !

One more question about IDL module mapping to C++

module M
{
    interface I {...};
};

would gennerate an impl sample class : class M_I : public....

Is there an argument to IDL parser to make it generate namespaced class
instead of M_ prefixed ?

namespace M
{
    class I : public....
    {
    };
}

Thanks
       _____________________________
      /                            /|
     /___________________________ / |
    |                            |  |
    | Frédéric Prin              |  |
    | Senior Software Engineer   |  |
    |      S I L V A C O         |  |
    | Grenoble REsearch CEnter   |  |
    | Tel 04 56 38 10 33         | /|
    |____________________________|/ /
   /__/__/__/__/__/__/__/__/__/__/ /
  /__/__/__/__/__/__/__/__/_____/ /
 /__/__/__/__/__/__/__/__/__/__/ /
 \_____________________________|/
----- Original Message -----
From: Duncan Grisby <dgrisby@uk.research.att.com>
To: Frédéric Prin <frederic.prin@silvaco.com>
Cc: omni <omniorb-list@uk.research.att.com>
Sent: Tuesday, November 13, 2001 7:06 PM
Subject: Re: [omniORB] interface inheritance and _i inheritance


> On Tuesday 13 November, =?iso-8859-1?B?RnLpZOlyaWMgUHJpbg==?= w=
rote:
>
> > interface A {
> >  void MethodA();
> > };
> > interface B : A {
> >  void MethodB();
> > };
>
> [...]
> > class B_i : public POA_B,
> >                public A_i
>
> You must use virtual inheritance to avoid the name clashes.
>
> Cheers,
>
> Duncan.
>
> --
>  -- Duncan Grisby  \  Research Engineer  --
>   -- AT&T Laboratories Cambridge          --
>    -- http://www.uk.research.att.com/~dpg1 --