[omniORB] about interface inheritance

zhang ji zsfunl@yahoo.com
Mon, 15 Apr 2002 22:56:31 -0700 (PDT)


Hi all,

In my one idl file(test.idl as below), it contains two
inherited interface. I used implementation inheritance
based on the interface inheritance, but it seemed the
it does not succeed(the server just seemed to fall
idle loop). 

Is the multiple inheritance someplace in my below
codes wrong?

Thanks,
Shifeng

IDL file:
"
interface father
{
        void hello();
};

interface son : father
{
        void hello_son();
};
"
Implementation H file:
"
class father_i : public POA_father,
                public
PortableServer::RefCountServantBase
{
        public:
        father_i();
        virtual ~father_i();

        virtual void hello();
};

class son_i : public POA_son,
                public
PortableServer::RefCountServantBase,
                public father_i
{
        public:
        son_i();
        virtual ~son_i();

        using POA_son::_this;
        using POA_son::_remove_ref;

        virtual void hello_son();
};
"


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/