Hello :)

I ran into a problem where class definitions were not being generated
for SimpleTypes. Peeking inside of /usr/bin/generateDS.py it seems that
portion of the code was commented out. I uncommented and updated it to
also list any associated enumeration values (my main use case for
needing the classes created)

# diff /usr/bin/generateDS.py.orig /usr/bin/generateDS.py
4238c4238
<     for simpletype in simpleTypeDict.keys():
---
>     for simpletype, simpleTypeObj in simpleTypeDict.items():
4240c4240
<         wrt('    pass\n')
---
>         wrt('    values = %s\n' % str(simpleTypeObj.values))
4260c4260
<     #generateSimpleTypes(outfile, prefix, SimpleTypeDict)
---
>     generateSimpleTypes(wrt, prefix, SimpleTypeDict)

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to