Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: SomersetGraham on April 19, 2012, 05:59:31 pm

Title: c++ code generation
Post 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
Code: [Select]
: 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
Title: Re: c++ code generation
Post by: Eve on April 20, 2012, 08:25:32 am
%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.)
Title: Re: c++ code generation
Post by: SomersetGraham on April 20, 2012, 04:49:19 pm
Hi Simon
The class for which I am generating code only has one generalization connection, but the code generated includes the base class twice
Title: Re: c++ code generation
Post by: Eve on April 23, 2012, 08:24:05 am
Check 'Set Parents and Interfaces (Ctrl+I).

I'm guessing you'll find an additional entry in there.