[omniORB] Multiple Inheritance

Neil Vince neil.vince at gmail.com
Fri Feb 3 13:06:09 GMT 2006


Ah yes.... and I call myself a C++ programmer :)

Thanks.

Gerd Schmitt wrote:

>
> In addition to what Wernke wrote:
> It seems you are looking to reuse the implementation of A and B.
> Your implementation class would then look something like:
>
> #include "C.hh"
> #include "AImpl.h"
> #include "BImpl.h"
>
> class CImpl : public virtual POA_C, public virtual AImpl, public 
> virtual BImpl
> {
> ...
> }
>
> The "virtual" inheritance is important.
>
> Having said that, I'm not the Guru like the other guys here :-(
>
> Gerd
>
>
> Wernke zur Borg wrote:
>
>> Hi,
>>
>> CORBA IDL does support multiple inheritance:
>>
>> interface C: A, B {     ...
>> };
>>
>> omniidl will create the corresponding C++ code.
>>
>> Have you tried it? Where is your problem exactly?
>>
>> Wernke
>>
>>
>>> -----Original Message-----
>>> From: omniorb-list-bounces at omniorb-support.com 
>>> [mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Neil 
>>> Vince
>>> Sent: 03 February 2006 10:24
>>> To: omniorb-list at omniorb-support.com
>>> Subject: [omniORB] Multiple Inheritance
>>>
>>> Hi,
>>>
>>> I've been trawling looking for documentation/examples of 
>>> implementation of multiple inheritance within omniOrb and have drawn 
>>> a blank, so was wondering if there was anyone out there that can 
>>> lend a pointer.  I've got two interfaces A & B, but now I need an 
>>> interface C the implements both of them (and nothing else) but 
>>> without rewriting all the implementation etc.
>>>
>>> Regards,
>>>
>>> Neil Vince
>>> www.world-text.com
>>> Nevis Systems Limited
>>>
>>
>>
>> _______________________________________________
>> 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