Book a Demo

Author Topic: Loss of information on Round-tripping  (Read 3040 times)

chepburn

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Loss of information on Round-tripping
« on: December 13, 2007, 06:36:51 am »
Hi all,

In another thread, I queried about the behavior of the code generator and the triggers to have it add the #include for each class referenced in a new class.

Well, after some playing around, we have noticed that if parameters and return values are always defined as the object classifier name, and the parameter name is defined as name, *name, or &name,  the code generator ALWAYS output the correct #include for the referenced object.

When the code is reversed, the parameter defintion returns to the way EA wants it defined:  ie name: &classifier and the #includes are no longer generated.

It appears that EA is using the 'default' reference character to parse out the object classifer when deciding to create #includes.... when set to & it will generate #includes for parameters that are references and none for parameters that use *.  ALSO, when forwarded engineered, EA does not put the reference character in the parameter of the generated code!!

I will modify the code generation template if necessary...but I do not think that that part of the template is 'exposed', at least, in my ignorance, I  have not been able to find it.

Any pointers?  (pardon the pun)



«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Loss of information on Round-tripping
« Reply #1 on: December 13, 2007, 07:12:30 am »
OK, you're pardoned.

Just to be sure, what settings do you have in the Feature reference indicator section of the Tools | Options | Objects dialog?

And what language are you using. I think you may have mentioned it in your earlier posts, but I just cannot remember.

David
No, you can't have it!

chepburn

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Loss of information on Round-tripping
« Reply #2 on: December 13, 2007, 12:28:47 pm »
Hi,
Highlight off, Reference char = &,  and suffix.

We are generating C++