Hi again,
NomisEgnal wrote:.... seems to crash BoUML-reverting tool.
There are two problems.
1) There is a very stupid bug in the management of the formals in the reverse (not the roundtrip) where in an iteration I increment two times an iterator, in case there are an even number of formals the behavior is undefined, if it is odd each formal at an even rank are forget.
2) The reverse is also disturbed because in the
cpp file you define classes out of a namespace form prefixing their names by the namespace's name, it does not recognize the constructors when the class is QwtClip::XX but the constructor XX, of course there is no return type for the constructor so finally the result is a syntax error and the constructor is not added in the model. It will the same for destructor. In that case the classes are named with their prefix in the model.
In case the classes are defined into the namespace form in your
cpp file the reverse does not produce wrong syntax error and the classes are named without the prefix "QwtClip::". To manage the namespace the reverse create a dedicated package and define the corresponding classes into it (I placed the files into
/tmp/re before the reverse and used a project also named
re) :

- re.png (117.25 KiB) Viewed 5480 times
The modified files are attached (in the header file I just put
QWT_EXPORT in comment), but because of (1) you cannot reverse them