Book a Demo

Author Topic: Code generation C++  (Read 3966 times)

MPLT

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code generation C++
« on: June 21, 2005, 05:28:09 am »
Is there a .doc that explain what part of EA will be translated to C++ code and how it will be translated (with sample).  For exemple Tagged value do not seem to be translated.

Thank you.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code generation C++
« Reply #1 on: June 21, 2005, 06:31:07 pm »
I'm not exactly sure what you're after, but if you open Configuration | Code Generation Templates and select C++ as the language you can see everything that EA maps to C++ code when generating.

For more information on how, do a search for "Code Template Framework" in EA's help.

Simon

MPLT

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code generation C++
« Reply #2 on: June 22, 2005, 08:18:39 am »
Ok, now how can we have the "parameter note" to be included in C++ code?  Same thing for "initial value" in "class constructor"

Thank you.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code generation C++
« Reply #3 on: June 22, 2005, 04:57:43 pm »
Parameter notes can be included in the generation by specifying either javadoc or XML.NET comment styles in the C++ Specification options page.

Alternatively you can modify the templates to include them.

For C++ the attribute initial value isn't stored with the attribute because it could be different between multiple constructors.

Instead, you can model the constructor(s) with a tagged value called "initializer".

Simon

MPLT

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code generation C++
« Reply #4 on: June 22, 2005, 05:43:54 pm »
Could you give me some sample on note modification for parameter (plain note) and how to do the "initializer" stuff?

thank you.