RES: [omniORB] Pointer from a _var?

Juan Esteban Bernabó jbernab@OpenComm.com.br
Fri, 22 Jun 2001 04:53:11 -0300


This is much more a CORBA quastion than omniORB question but maybe you can
answer it.

I would like to know what is the best aproach to implement a hierarchy of
interfaces.

interface A
{
	string getNameA();
};

interface B : A
{
	string getNameB();
};

...................

class AImpl : public _sk_A
{
	char *getNameA() { return m_a; }
	char *m_a;
};

class BImpl : public _sk_B, public AImpl
{
	char getNameB() { return m_b; }
	char m_b;
};

What would be the more accerted way of doind this, i mean inerithing the
funciontionality from a base class that also implement an interface.

Anybody had to implement an interface hirarchy and has a good way of doing
things?

Thank you in advance.
Juan.