Author Topic: Synchronisation by template  (Read 3266 times)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Synchronisation by template
« on: January 19, 2005, 12:59:10 am »
Problem:
Quote
Hi
  We work within nemaspaces in CPP file too. the problem is that when we generate a new method in EA it appends method at the end of file , instead of inside corresponding namesapce.
 
 I havn't found how to change it through code generation templates, you can change there maybe for 1st time code generation, but not for addings.
 
   any ideas?


answer (by simonm):
Quote
At the moment it's not possible...  
 
I guess you'll just need to manually move the methods EA creates into the right namespace.
 
Simon



is it possible to make some attribute for each class marking that file was created through EA so it will add code using generation templates rules?

any way, methods are updated fine in header file, can't some similar technique be used here too?
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Synchronisation by template
« Reply #1 on: January 20, 2005, 02:24:23 pm »
Oh, methods are updated fine in the implementation file normally.  Having namespaces in the implementation file is just something that was never considered though.

There are quite a few things that would need to be done in order to do what you want.  Some of them are likely to become very complex.

Simon

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Synchronisation by template
« Reply #2 on: January 22, 2005, 06:38:24 am »
Yes I gget it :(
We desided for now to give it up and use normal EA standard for it.
Recursion definition:
If you don’t understand the definition read "Recursion definition".