Book a Demo

Author Topic: Aggregation code generation  (Read 3545 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Aggregation code generation
« on: May 10, 2011, 02:02:46 am »
HI all
I am trying to get EA to generate C++ code for an aggregation where the multiplicity is 1..*
I would like it generate QList<myType*> m_sections;
I have tried setting the Member Type field of the Aggreation properties dialog to QList<myType*>
I have also set the collection classes in the c++ code generation pages to be QList<#TYPE#> but this does not work either.

Does anyone know the correct way to do this?

TIA

Graham
Using V12

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Aggregation code generation
« Reply #1 on: May 10, 2011, 04:43:23 pm »
Graham,

Have you tried with v9?
Support for template classes in code generation has been added in v9

Geert

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Aggregation code generation
« Reply #2 on: May 10, 2011, 05:03:47 pm »
It remains the same under V9 >:(
Using V12

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Aggregation code generation
« Reply #3 on: May 10, 2011, 05:22:35 pm »
Hi
It seems that I have inadvertently broken the code generator by updating the code generation template.
I have now fixed it
Using V12