Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: cem on April 08, 2011, 06:37:25 pm

Title: #including dependencies
Post by: cem 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...
Title: Re: #including dependencies
Post by: Eve 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.