Book a Demo

Author Topic: C++ Code generation: Unable to synchronise operation body during code generation  (Read 2896 times)

MPoudret

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Hello,

I created a simple class containing only one operation and providing code into this operation. I set C++ as language for this class. When generating code for this class, the operation is generated properly with its code in the *.cpp file. But, when updating the operation code in my EA model and then re-generating the code, I noticed that the operation body in the *.cpp file is not updated according to my new code.

Some remarks:
- the code generation option, "Always shynchronise with existing file" is checked
- I noticed that in the Opbject Options Attribute/Operations pane, there exist an "Include method bodies in model when reverse engineering" (also checked), did I missed a similar option for forward engineering (I mean code generation) ?

Regards,
Mathieu
 

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
That's correct. The only time it will override the body is when you do a complete overwrite instead of a synchronization.

MPoudret

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
That's correct. The only time it will override the body is when you do a complete overwrite instead of a synchronization.

Thank you for your answer! On my mind, It would be a great improvment to handle such a feature.

Regards,
Mathieu