Hi all,
In another thread, I queried about the behavior of the code generator and the triggers to have it add the #include for each class referenced in a new class.
Well, after some playing around, we have noticed that if parameters and return values are always defined as the object classifier name, and the parameter name is defined as name, *name, or &name, the code generator ALWAYS output the correct #include for the referenced object.
When the code is reversed, the parameter defintion returns to the way EA wants it defined: ie name: &classifier and the #includes are no longer generated.
It appears that EA is using the 'default' reference character to parse out the object classifer when deciding to create #includes.... when set to & it will generate #includes for parameters that are references and none for parameters that use *. ALSO, when forwarded engineered, EA does not put the reference character in the parameter of the generated code!!
I will modify the code generation template if necessary...but I do not think that that part of the template is 'exposed', at least, in my ignorance, I have not been able to find it.
Any pointers? (pardon the pun)