Hello Paul,

have you tried POA tie approach? IIRC it was designed to fulfil such needs, i.e. integrating legacy code.

Cheers,
Karel
--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---

On Thu, 24 Aug 2006, Caswell, Paul (SELEX Comms) (UK) wrote:



Hello All,
Looking at the code generated from IDL I was wondering why none of the
base classes are pure C++ interfaces.  For example, given the following
IDL:

interface Base
{
  void foo();
  void bar();
};

I get the following classes generated

class Base :
 virtual public CORBA::Object
{
  // the interface and lots of CORBA stuff
};

class Base_stub:
 virtual public Base
{
  // the interface and lots of CORBA stuff
};

class POA_Base : virtual public PortableServer::StaticImplementation
{
// the interface and lots of CORBA stuff
};

The question is why isn't there a true base class (interface) that looks
like the following that the above classes derive from

class Base
{
public:
  virtual void foo() = 0;
  virtual void bar() = 0;
};

The reason for this is that I want my CORBA servant to be able to call
into another object with exactly the same interface as the servant.
None of the currently generated classes allow me to do this cleanly.
Perhaps there's an IDL compiler option that I've missed?

Thanks
Paul



********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to