Book a Demo

Author Topic: How to control reverse engineering in MDG Techn.?  (Read 4413 times)

Richard Fasang

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
How to control reverse engineering in MDG Techn.?
« on: May 25, 2012, 11:02:33 pm »
Hello together,

I have found MDG technology XML file for Symbian C++ here: http://www.sparxsystems.com/resources/mdg_tech/symbian_cpp.html

I understand how to control generation of code when classifier has some specific stereotype, using code template editor.

I do not understand but how it is controlled reverse engineering in that technology to set stereotype of new classifier when macro is used in source code for class) >:(

How it is possible to control reverse engineering in MDG generally?

I want for example set new classifier element type to Interface while C++ reverse engineering when used some macro in C++ header file. Reason is that actually EA imports from C++ everything as class into UML model.

Thanks a lot,
Richard Fasang


Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #1 on: May 26, 2012, 12:41:13 am »
Hi,

As far the reverse engineering process isn't controlled by the MDG technology (e.g. using an AddIn) there's no such support in EA.
A MDG technology can provide specialized code generation templates, but control during code parsing when its reverse engineered is not provided in a similar way.
AFAIK it's a one way (forward engineering) road  :( ...

WBR
Günther

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #2 on: May 26, 2012, 02:52:25 am »
Günther is right. However, I think you're after the code reverse engineering. But the story is the same. Code reverse is hard coded. Only the forward way can be controlled via a macro mechanism.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #3 on: May 28, 2012, 10:17:37 am »
Richard is actually correct. That technology file does modify the reverse engineering of C++.

It's possible to make limited changes by this method, but it's not complicated and supported in any way.

Richard Fasang

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #4 on: May 28, 2012, 02:46:42 pm »
Thank You for all replies.

Quote
Richard is actually correct. That technology file does modify the reverse engineering of C++.

It's possible to make limited changes by this method, but it's not complicated and supported in any way.

So, one important thing: I was right and it is possible to control reverse engineering in this way! As this is but limited and not supported feature I should probably find another way. :(

Hmmm, seems to be most efficient way how to solve problems with reverse engineering to make addin and process what was created in UML by reverse engineering afterwards...

What si reason to not use similar mechanism as for forward engineering to control reverse engineering?

IMHO: Put similar stuff into hands of users and everybody will love You...  :)

Regards,
Richard Fasang


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #5 on: May 28, 2012, 08:13:40 pm »
I guess the reason is simply that for a dynamic reverse engineering you would need something like Yacc. And most likely you would not like to learn that.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to control reverse engineering in MDG Tech
« Reply #6 on: May 29, 2012, 08:33:21 am »
That's pretty much it exactly qwerty.