Book a Demo

Author Topic: Code generation  (Read 2244 times)

Graham_Labdon

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code generation
« on: June 17, 2007, 11:55:27 pm »
Hi

I have an existing project which I am reverse engineering into a EA model

Each class operation currently has the following format

void Class1::op1()
///////////////////////////////////////////////////////////////////////////////
//
// DESCRIPTION:
Operation Description
///////////////////////////////////////////////////////////

What I would like to happen is that 'Operation Description' is related to 'operation notes' in the model.

I have amended the default template for operation notes in the model and when generating code for the first time the code produced is what I require. But if I  now edit the operation description in the code and then synchronise the model with the code EA seems to get confused.

Can anybody let me know if this can be achieved?

Thanks

Graham

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code generation
« Reply #1 on: June 18, 2007, 01:21:33 pm »
The best that you can do is post process the operation notes from an addin or automation client after import.