I'm trying to put some common logic into a central .ice file that gets "included" by some of my server definitions. The problem is that there's some tedium involved because I have to run slice2cpp on each of the included files as well as on my main slice file that includes them.
For example, if I define some kind of common structure:
struct Datum {
double data;
string unit;
};
That I want to use between various servers:
..
include <datum.ice>
module Something {
interface SomeServer {
} ...
};
...
include <datum.ice>
module Something2 {
interface SomeOtherServer {
};
};
Is there a way to tell "slice2cpp" to go ahead and run itself on any files that were "include"d in a slice definition file? The problem is that as I may be utilizing a bunch of different "datum.ice" like files for common structures between different servers and in my project files where I tell it which ice files to build it gets tedius to have to specify every single include dependency manually, particularly if some of them have includes, and some of their includes have includes, etc.
Thanks,
Caleb

Reply With Quote