Quote:
Originally posted by vukicevic
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).
|
You can use the --impl switch to slice2cpp to generate implementation stubs (.h and .cpp) file that you can edit. That way, you don't have to write the implementation class definition yourself. Would that meet your requirements?
Cheers,
Michi.