[omniORB] Generating seperate stubs for structs and sequences
Duncan Grisby
duncan at grisby.org
Wed Feb 11 19:06:50 GMT 2004
On Tuesday 10 February, Mike Mascari wrote:
> I have a code generation utility, which, examining relation variables
> and/or query result, will generate IDL like the above and a C++ wrapper
> class. The problem is that I have a large number of such structs that
> all belong to the same interface. omniidl generates a 28,000 line header
> file as its output. My Makefile compiles each C++ wrapper class, which,
> unfortunately must include the MyModule.hh 28,000 line (808KB) header.
> To rebuild the project from scratch takes 2 hours. Even using gcc 3.4's
> precompiled header directive improves compilation time to about 1 hour.
>
> Is there any way to have C++ class headers generated for structs and
> sequences as their own file? I'd like to have this:
>
> Employee.hh
> Employees.hh
> MyModule.hh
It wouldn't be terribly hard to modify the IDL compiler backend to do
that. Alternatively, you could write a script to process the IDL
compiler output into separate files. By far the easiest thing, though,
is probably to make it so that your code generator generates lots of
separate IDL files.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list