Book a Demo

Author Topic: C++ MDA Transform  (Read 4337 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
C++ MDA Transform
« on: March 23, 2010, 07:49:59 pm »
Hi All
Am I correct in thinking that there is no direct support for performing a transform from my PIM to a C++ PSM?
If this is correct how easy is the task to create a C++ trnasformation template.
Has nobody asked for this before? :o

Thanks

Graham
Using V12

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: C++ MDA Transform
« Reply #1 on: March 24, 2010, 05:23:23 am »
Yes, there isn't any (there was a recent thread about this topic). It's also questionable, what a "C++ PSM" should be. What exactly do you refer to, STL?
Besides some unlogical missing features regarding code generation template (CGT) macros, it works more or less like the CGT engine.
See more details here:
http://www.sparxsystems.com/uml_tool_guide/mda_transformations/mdastyletransforms.html

and here:
http://www.sparxsystems.com/uml_tool_guide/mda_transformations/transformationtemplates.html

HTH
g.
« Last Edit: March 24, 2010, 05:27:40 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: C++ MDA Transform
« Reply #2 on: March 24, 2010, 04:07:52 pm »
Yes it seems to be an oversight no PIM->C++ MDA transformation.
Its not difficult to create your own MDA transformation. Give yourself a few days to learn the scripting language and create the first draft. Then about a week or two afterwards to fine tune it when you are using it in anger.
You may wish to consider copying the C# MDA transform and tweaking it to C++ rather than starting from scratch.

Don't forget to set the collection classes under tools>options>source code engineering>C++
« Last Edit: March 24, 2010, 04:10:48 pm by phenzell »
Happy to help
:)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: C++ MDA Transform
« Reply #3 on: March 24, 2010, 07:06:29 pm »
Thanks for the replies
Is there any support for a feature request for this functionality?
Using V12

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: C++ MDA Transform
« Reply #4 on: March 24, 2010, 10:10:28 pm »
Quote
Thanks for the replies
Is there any support for a feature request for this functionality?
If you could give a commonly accepted definition what a C++ PSM should be (as I've asked you for), we could give Sparx such a request. At the moment, it looks more promising for success, that you should follow Sunshine's (nice pseudonym BTW  :D) proposal.

Best regards,
g.