I'm invoking a list because your version will not work for me. The template will do nothing resulting in a line like "m_member = ;" with no parametername.
Have you tried with parentheses at the end of your call?
All attributes begin with m_ which is not wished
This seems to be an option in Tools >Options > Source code engineering > Attributes/Operations > Default name for associated.
if a way exist that I can convert the name in the right way
EA provides text handling macros (left, mid, right, trim, convert_name, to_lower, to_upper, find...). My advice is: build your own text handling macro that suits your needs and call it:
%MY_TEXT_HANDLING%($paramName)%
In the template, you grab the argument like this:
$src = $parameter1
For instance, I made myself a LAST_INSTANCE_OF macro.
You have math macros that let you count characters, which are not in any EA user guide : MATH_ADD, MATH_SUB, MATH_MULT.
Last caution : the RIGHT macro has a bug (%RIGHT("foo", "2")% renders "oo" but %RIGHT("foo", "3")% yields "". Go figure...)
Do you perform a model transformation before the code generation? I always do a two step generation for Java: MDA transformation from platform independant model to Java specific model, then code generation. My imports are solved two ways : either I create a Dependency connector between my classes, or I add a tagged value to my class:
Tag{name="imports" value="import com.whatever.class;"}
.
Both at MDA transform time.
Then I tuned the java code generation Class template to print the content of this tagged value by adding the line :
%classTag:"imports"%
I think that could solve (part of) your namespace problem (though I don't know namespacing in C++).
Stéphane