Book a Demo

Author Topic: GenerateClass extra options  (Read 4823 times)

Timbo

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
GenerateClass extra options
« on: October 01, 2010, 06:54:16 pm »
Hi,

As i have come across other undocumented features i though i would just check this. The generateclass method has a second parameter for extra options, the doco says this is currently unused. Is there a plan to implement this option in the future? Is there any options i can set now? I would like to set the langauge, dir and filename same as when doing it manually. From what i can tell the method will use the options currently set, so if there is nothing set then...

GenerateClass (string
ElementGUID, string
ExtraOptions)


Regards,
Tim

vinzz38

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: GenerateClass extra options
« Reply #1 on: July 29, 2013, 11:03:26 pm »
Hello all !

A little UP.

I have the same question.

Thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: GenerateClass extra options
« Reply #2 on: July 30, 2013, 08:37:24 am »
Setting the language and the filename can be done from the Element itself, so it's unnecessary to add as an option here. The directory is also irrelevant because the filename needs to be explicitly set.

So what is it that you need to set that you can't set any other way?

vinzz38

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: GenerateClass extra options
« Reply #3 on: July 30, 2013, 07:10:19 pm »
Thank for answer.

Ok, didn't know i can change the filename and the language on the Element itself.
I have an other question, is it possible, from 1 UML class, to adapt the C++ code template to generate 4 files ( 2 .cpp files and 2 .hpp files : the 2 .cpp et the 2 .hpp must have different name and different content) ?


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GenerateClass extra options
« Reply #4 on: July 30, 2013, 08:45:55 pm »
That does not seem to make sense. If you have different content then you have different classes, not a single one.

Maybe, if you intent to have different implementations (would you keep that in EA?) you could have a transformation from a more abstract class to two more concrete ones.

q.

vinzz38

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: GenerateClass extra options
« Reply #5 on: July 31, 2013, 07:43:54 pm »
Thank for your answer but I'll find another solution.