[xsde-users] Problem with large enumerators

Boris Kolpackov boris at codesynthesis.com
Sun Jan 17 10:48:37 EST 2016


Hi Chris,

Jones Chris <Chris.Jones at helvar.com> writes:

> Would it be possible to change this to a new form? some form of looped
> lookup perhaps seeing as you already have an array of the string form
> in the <file>.cpp and the associated enumerator in the <file>.h

The enum thing is pretty complicated. In particular, the string literal
array you refer to will not work for a derived (restricted) enum (yes,
we have to support these). In this case, the array is only generated for
the base class and will contain literals that the derived class has
"restricted away".

In any case, I fixed it by using the (admittedly ugly) do/break approach
for very long enums. Can you give it a try and let me know if there are
any problems:

http://codesynthesis.com/~boris/tmp/xsde/xsde-3.3.0.a10-i686-windows.zip

Thanks,
Boris



More information about the xsde-users mailing list