Closed ringlej closed 6 years ago
Sorry I haven't responded earlier. I added a commit to allow specifying a namespace to enclose the sc in a given namespace name.
Also, please see the commit comment for bfba655 as it describes a race condition I faced and how this fixes my use case
looks good :-)
I think it would be good to unit test both with and without '-t'. Maybe like something below. Ideally it would be nice if both versions could be tested from the same test program so we don't have to build two test programs, but that gives name conflicts as it is now. One option could be to add a parameter to scxmlcc to force the generated class name. Or probably better - an option to put the generated class in a namespace.