I think the suggestion is for slice2cpp to generate a #define for each interface/class that would contain declarations for the methods defined in that interface. For example, the following slice:
Foo.ice:
Code:
module Bar {
interface Foo {
void opA (int arg);
int opB (string s);
};
};
Would generate as part of Foo.h
Code:
#define ICE_DECLARE__BAR_FOO \
virtual void opA (::Ice::Int, const ::Ice::Context&); \
virtual int opB (const ::std::string&, const ::Ice::Context&)
so that any FooI implementation would just use ICE_DECLARE_BAR_FOO as part of the class declaration, instead of duplicating the signatures by hand. The only places where the method signature would then need to be written would be the slice source and the method definition (where any mistakes can be caught by the compiler, leading to a "no such method declared in class" error).