Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Hexamon on April 22, 2004, 09:08:24 am

Title: Class Template code generation
Post by: Hexamon on April 22, 2004, 09:08:24 am
This is not to be confused with EA templates for code generation. It's about generating code for Parameterized Class Templates. The problem, I'm observing, is that it seems to generate header files only. Is this a normal behavior? I was unable to find any config option to turn the implementation generation on.

In general, the docs seem to be extremally scarse about class templates. Is there more info?

Title: Re: Class Template code generation
Post by: Barry_Pearce on June 24, 2004, 10:57:36 am
Paramertized classes in C++ (i assume here because you dont say) are only header files anyway.....

You must place the entire code in a single header file so that the compiler can instantiate (and generate) the instance correctly.