Book a Demo

Author Topic: Suggestion: bulk change filename for code gen  (Read 6088 times)

andymc73

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Make the computer work for you
    • View Profile
Suggestion: bulk change filename for code gen
« on: February 18, 2007, 04:15:55 pm »
Hi all,

I often need to generate IDL code (using the MDG Corba plugin).

When using the Auto Generate files checkbox, each and every class, interface and enumeration in a package goes into its own IDL file, even though they all share the same Corba module in the generated code. However I would like to send all generated IDL for a package into a single .idl file.

My existing workaround:
If I don't check "Auto Generate", I am prompted one at a time, for every one of these elements for a target file, at which point I can select the same filename and end up with all elements in the one file.  
However this is very laborious when there are a lot of elements, and a royal ??? :-( if I want to change a filename.

Given the dialog box appears to be common for all languages I would assume the problem exists for C++ although often good coding practice would suggest that generally there would be a separate H file per class.

I note that when generating SQL DDL, however, I have the option to send all tables to one file.

I would like to see the ability to optionally (not by default) see all generated code go to the same file, without having to manually set the file one at a time after resetting code generation settings for the package.
(The equivalent setting for DDL generation is the radio button "Single File")

--Andrew

andymc73

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Make the computer work for you
    • View Profile
Re: Suggestion: bulk change filename for code gen
« Reply #1 on: May 09, 2007, 05:37:56 pm »
Does anyone have an opinion on this or is it just me? ??? :-[

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Suggestion: bulk change filename for code gen
« Reply #2 on: May 12, 2007, 12:35:58 pm »
Quote
Does anyone have an opinion on this or is it just me? ??? :-[

I think the answer is No.

Since I don't use Corba, I don't have an opinion, and assuming your request is consistent with good software development, I think the request is reasonable; therefor, I don't think it is just you.

Sorry I could not help with your initial question.
Verbal Use Cases aren't worth the paper they are written upon.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Suggestion: bulk change filename for code gen
« Reply #3 on: May 12, 2007, 01:36:15 pm »
I'm with Jim...

Although we do use IDL, the current functionality is OK with us.  But that's not the point.  If the language allows it, then EA should support it.

I definitely have multiple C# classes in a single file.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Suggestion: bulk change filename for code gen
« Reply #4 on: May 12, 2007, 02:28:27 pm »
Same thoughts here. I don't use IDL, although some associates along the way have. Regardless of target, it would be nice to have the option of consolidating generation if the platform supports it.

David
No, you can't have it!

andymc73

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Make the computer work for you
    • View Profile
Re: Suggestion: bulk change filename for code gen
« Reply #5 on: May 14, 2007, 02:54:08 pm »
Thanks all,

Ill raise a bug with registered support.


--Andrew