Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: SomersetGraham on April 19, 2012, 05:59:31 pm
-
Hi
I am generating code for c++ classes and for some I am getting a strange problem
The %ClassInherits% macro is returning
: public QDialog, public QDialog, public QDialog, public QDialog
But the class only has ONE generalization connector in the model
Does anyone know where/how EA generates the %ClassInherits% ?
Thanks
-
%ClassInherits% calls the Class Inherits template. Which in turn lists over the Class Base (implicitly including Linked Class Interface) and Class Base (implicitly including Linked Class Interface.)
-
Hi Simon
The class for which I am generating code only has one generalization connection, but the code generated includes the base class twice
-
Check 'Set Parents and Interfaces (Ctrl+I).
I'm guessing you'll find an additional entry in there.