Book a Demo

Author Topic: c++ code generation  (Read 3959 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
c++ code generation
« 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
Using V12

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: c++ code generation
« Reply #1 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.)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: c++ code generation
« Reply #2 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
Using V12

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: c++ code generation
« Reply #3 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.