[xsd-users] XSD Libraries
howes at ll.mit.edu
Mon Jul 19 11:12:26 EDT 2010
On Jul 15, 2010, at 10:48 AM, Boris Kolpackov wrote:
>> I'm working with a set of XML schema files that use GML 3.2 for their
>> base. Everything works fine, but I was wondering if it was possible
>> to generate C++ files for GML 3.2 first and build a library, and then
>> when generating the C++ files for the other schema files xsd would
>> somehow know to stop generating stuff when it reached GML 3.2 entities
>> that have already been generated in the previous step.
> 1. Compile the GML 3.2 schemas with the --file-per-type options
> and place the generated code into a library.
> 2. Compile you schemas without the --file-per-type option. The
> resulting generated code will reference header files
> corresponding to the "official entry point" generated on
> step 1.
Thanks Boris! That's is what I assumed would work. Unfortunately, the schemas I am using from another team suffer from using a 'kitchen-sink' include that includes all of the real includes. The problem this causes is undefined types in the C++ files because the include guard macros in the 'kitchen-sink' include keep the compiler from seeing the other include files. The other team insists that it would be too much work to know which include files they really need. I've told them that their software engineering methods take too much work for me to support...
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the xsd-users