Book a Demo

Author Topic: c++ #include statemnts not added when regenerating  (Read 3027 times)

johng

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
c++ #include statemnts not added when regenerating
« on: March 22, 2013, 06:26:11 am »
When I generate any C++ class,  “#include” statements are added for dependencies in the model from this class to other classes.  However, if I then add additional dependencies and regenerate the class, the appropriate additional includes are not added.

This is surprising, because if I add additional attributes or functions, for instance, they are added when regenerating.  I am migrating over from using Rational Rose, and I expected EA to keep dependencies in code and model in sync during every generation like Rational Rose does.

Can anyone tell me how to have the extra #include statements added to the .h file on regeneration?



Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: c++ #include statemnts not added when regenera
« Reply #1 on: March 22, 2013, 05:06:09 pm »
Hi,

in my understanding:

EA makes a good job with Notes, Attributes, Operations and Classes (round trip).

Additional features like '#include', behaviour or things added by Code Generation Templates are only working when generating for the first time (forward generating).

Usually it takes some time to understand and handle this.


Kind regards,

Helmut


Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

johng

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: c++ #include statemnts not added when regenera
« Reply #2 on: March 26, 2013, 01:28:01 am »
Thanks Helmut,

That confirms what seemd to be the case to me too.

-john