Book a Demo

Author Topic: Code generation with same filename of package and class name  (Read 4823 times)

jayarr

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi,

I did a reverse engineer on our project using EA 16 (Code Generation -> Import Source Directory and Package structure was set to Create Package per Directory.

There is an issue if the Package filename has the same filename of the class inside the package.
The class was not generated but if the class has a "class-like" inside it like struct or other class inside the class (event classes, state classes) these was added in the package but the class itself was not generated.

Is there a solution or settings needed to setup regarding this issue?

Thanks,
jayarr

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Code generation with same filename of package and class name
« Reply #1 on: May 02, 2023, 07:43:19 pm »
if the Package filename has the same filename of the class inside the package.
Can you explain what you mean by this?
I don't understand. :-[

Geert

jayarr

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Code generation with same filename of package and class name
« Reply #2 on: May 02, 2023, 08:37:49 pm »
if the Package filename has the same filename of the class inside the package.
Can you explain what you mean by this?
I don't understand. :-[

Geert

Let say I have a package named Network and on this package I have also a class named Network.cpp and Network.h. Inside the Network.cpp/.h I have for example a struct declaration and other classes inside it. When I tried reverse engineering (Code Generation -> Import Source Directory), this Network class was not generated and the struct and class inside it was added as an Element of the Network package.

P.S. I do not know how to add image to easily explain the issue I got from code generation.

Thanks,
jayarr