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.