View Single Post
  #1 (permalink)  
Old 12-19-2005
PeteH PeteH is offline
Registered User
 
Name: Peter Hug
Organization: Warehouse Optimization LLC
Project: APAL
 
Join Date: Oct 2004
Location: Napier, New Zealand
Posts: 26
Implementing ICE interface for existing class library

I'm currently investigating how I best implement an ICE interface for an existing class library.

In an ideal world the entire public interface of all classes would be accessible through ICE and the oo features (polymorphism, inheritance, etc.) in the library would also exist in the ICE interface.

Here is a simple example:

Code:
class WorldCitizen
{
  public:
    virtual std::string SayHello() = 0;
};

class French : public WorldCitizen
{
  public:
    virtual std::string SayHello() { return "Bonjour"; }
};
Numerous little problems creep in if I simply create matching interface definitions and inherit from the slice generated proxies for the interfaces.

I wonder what the best approach is to accomplish this and would greatly appreciate some clues.
__________________
Peter Hug
Warehouse Optimization LLC (http://www.warehouseoptimization.com)
Reply With Quote