Author Topic: #including dependencies  (Read 403 times)

cem

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
#including dependencies
« on: April 08, 2011, 06:37:25 pm »
Hi,

Is it possible to have EA C++ code generator to create #include directive for classes having dependency connector. I mean, I have ClassA and ClassB. ClassB is dependent on ClassA, that is, a dependency connector exists from ClassB to ClassA. When I generate the code, ClassB file has no line #include "ClassA". Is it possible to have this line, for example by tweaking code generation template?

Thank you...

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6190
  • Karma: +47/-5
    • View Profile
Re: #including dependencies
« Reply #1 on: April 11, 2011, 08:20:22 am »
You can tweak the code templates although the C++ templates currently don't use the tweakable method.

If you look at the PHP templates for Import Section and Import you'll see how it can be done.
Simon

support@sparxsystems.com