Book a Demo

Author Topic: Multiple language code generation  (Read 2461 times)

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Multiple language code generation
« on: May 07, 2005, 03:47:50 pm »
Hi,

 Does EA have the ability to manage the code generation of multiple languages from a common model.

 Say I have design a couple of classes, e.g. ClassA, ClassB.

 I wish to generate Java and C# code from it.

 As the two implementation progress, I would like to reverse engineer from both and maintain design integrity.

 Does EA have separate storage for the actual reverse code fragment or does in session of reverse engineering override the code, i.e. if I reverse the Java version followed by the C# version, the C# code fragement/implementation would be the one being saved into the EA project file.

 I am designing a library for which I would like to be able to generate code for C++, C# and Java, hopefully Python too.

 I want my high level design to be common. Does EA allow me to do that. I have the Professional version of EA.

 Should I start looking at EA 5 beta?

Cheers

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Multiple language code generation
« Reply #1 on: May 08, 2005, 03:20:59 pm »
EA 5.0 beta will allow you to do it, all except for reverse engineering the code from code.

EA doesn't store the method code in the model at all.

To do it you will need to to create a platform independant model (and C++ and Python transformations) then transform that to each of your target languages.  They can then be used to generate code.  The transformations however are a one way process.  (Hence this doesn't work for reverse engineering.)