Author Topic: No directories for namespaces when generating code  (Read 4645 times)

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
No directories for namespaces when generating code
« on: October 31, 2012, 08:26:09 pm »
Is there a way to suppress the generation of (sub-)directories when generating C++ code with namespaces? I want to keep namespace declarations in code of course, but no extra directories for the generated files.

Is there some option I have overseen?

Regards,
Günther

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #1 on: October 31, 2012, 08:46:23 pm »
Hi
If you generate the code for a package from the project browser the you can use the Generate Package Source Code Dialog
Using V12

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #2 on: October 31, 2012, 08:51:47 pm »
Quote
Hi
If you generate the code for a package from the project browser the you can use the Generate Package Source Code Dialog

I know. But when I'm selecting a directory checking the 'Auto generate files', it will still generate sub directories for all the packages used below the one marked as namespace root, that's what I want to suppress.

Regards,
Günther

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #3 on: October 31, 2012, 09:04:15 pm »
Can you use the retain filenames check box?
Using V12

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #4 on: October 31, 2012, 09:08:24 pm »
Not when I'm generating the first time instead of synching.

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #5 on: October 31, 2012, 09:15:13 pm »
The the only way that I know of would be to generate the code from classes and not packages
Using V12

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: No directories for namespaces when generating
« Reply #6 on: October 31, 2012, 09:20:51 pm »
Quote
The the only way that I know of would be to generate the code from classes and not packages

Yes, I'm afraid so. THX for your help anyway.

Regards,
Günther