I'm working on a project with a server written in C++ that uses XML to communicate with a Java client.
I wrote a lengthy Perl script that parses the C++ classes (whose instantiated objects are transmitted via XML), and generates equivalent Java classes. This allows autogeneration of the Java classes whenever the C++ classes are tweaked.
The Java classes can parse incoming XML and populate themselves accordingly. They can also generate outbound XML. There are setters/getters for all members.
No one at my company has ever seen this done before.
I'm working on a project with a server written in C++ that uses XML to communicate with a Java client.
I wrote a lengthy Perl script that parses the C++ classes (whose instantiated objects are transmitted via XML), and generates equivalent Java classes. This allows autogeneration of the Java classes whenever the C++ classes are tweaked.
The Java classes can parse incoming XML and populate themselves accordingly. They can also generate outbound XML. There are setters/getters for all members.
No one at my company has ever seen this done before.
Blue