[omniORB] interface inheritance help required, badly required.

Eric Damphousse ericdamphousse at darwingroup.net
Fri Aug 1 14:59:14 BST 2003


Hi Stefan

Sure I can....

If I understand what you are proposing, one should have something as such...

The new interface should be....

#include "TestBaseInterface.idl"
#include "TestObject.idl"

interface combinedInterface : baseInterface, objectInterface{};

and the class would now be...

#include "CombinedInterface.hh"

class CObject_impl :
   public POA_combinedInterface,
   public PortableServer::RefCountServantBase
{
public:
 inline CObject_impl(){}
 virtual ~CObject_impl(){}

public:
 virtual base();
 virtual hello();
};


Stefan Seefeld wrote:

> Eric Damphousse wrote:
> >  Hi folks,
> >
> > Simply, I would like to have a class that can be derived for 2 or more
> > interfaces and for it to compile, and I have tried lots of things, but
> > no success.. There has to be a way of doing this but I cant see it.
>
> no, you really can't. That would incure lots of ambiguities...
> Can't you define a new interface deriving from the two you want to
> implement and then deriving from that ?
>
> Stefan
>
>
> _______________________________________________
> 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