[omniORB] interface inheritance help required, badly required.

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


  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.

Any help would be greatly appreciated!...
Thanks, eric

****************************File 1*************************
#include "TestBaseInterface.hh"
#include "TestObject.hh"

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

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

the base and hello are implemented in the cpp file that goes with the 
above class declaration.

****************************File 2*************************
TestBaseInterface.idl

#ifndef _TESTBASEINTERFACE__IDL
#define _TESTBASEINTERFACE__IDL

#pragma prefix "darwingroup.net"

interface baseInterface
{
 void base(void);
};
#endif

****************************File 3*************************
TestObject.idl

#ifndef _TESTOBJ__IDL
#define _TESTOBJ__IDL

#pragma prefix "darwingroup.net"

interface objectInterface
{
 void hello(void);
};
#endif






More information about the omniORB-list mailing list