Friday, February 22, 2013

First version of the cdl-generated xml file

Here is the first version of the xml code I got from updating the cdl parser in OcWrappers (.api file on the left, generated code on the right):

The code was generated using .edl templates and the same code that is currently used to generate the .cpp and .h files, which means that changes are easy to make, propagate automatically to all classes and the new files can be obtained quickly. I've run the parser for all the packages, all classes and all methods in OpenCascade 6.3.0 and the files were generated in 1 minute and 30 seconds.

Next week I'll change the templates for constructors, destructors and properties and 'translate' the parameter types to the types used in C#. After these are done, I will check to make sure that the templates are correct for all classes used in Naro.

No comments: