Author Topic: #including dependencies  (Read 1137 times)


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

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...


  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7271
  • Karma: +84/-12
    • 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.