Book a Demo

Author Topic: how do you ignore methods when reverse engineering  (Read 3585 times)

thed0ctor

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
how do you ignore methods when reverse engineering
« on: September 25, 2014, 09:03:37 am »
Hello,

I was wondering how you ignore certain methods during code generation (e.g. constructors and destructors). I'd like to keep these out of the model.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: how do you ignore methods when reverse enginee
« Reply #1 on: October 07, 2014, 09:33:53 am »
There's nothing available to do that.

The best suggestion I have is to add preprocessor instructions so that EA avoids them. (Depending on your language)

EA will always take only the first branch of conditional blocks (unless the condition is something like 0 or false) So a construct like the following will prevent EA from seeing code you don't want.

Code: [Select]
#ifdef EA_PARSING
// EA will see this
#else
// EA won't see this
#endif
It's ugly, but if you really want that, it's the only option I see.

thed0ctor

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: how do you ignore methods when reverse enginee
« Reply #2 on: January 14, 2015, 07:43:37 am »
I contacted support and they responded with a way that's useful:
You can hide them on the diagram by right
clicking on a class and selecting "Features & Properties -> Feature and
Compartment Visibility" Then if you want to hide a specific attribute/operation you just click "Custom" and whichever the ones you check are hidden.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: how do you ignore methods when reverse enginee
« Reply #3 on: January 14, 2015, 09:31:58 am »
That would hide them from the diagram, but they are still in your model.