Book a Demo

Author Topic: Code generation of string.  (Read 3733 times)

gob

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Code generation of string.
« on: October 06, 2012, 11:46:32 pm »
Is there any simple way to generate %className% as a string in the code?

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Code generation of string.
« Reply #1 on: October 07, 2012, 04:50:22 am »
Customizing the Code Generation Templates at an appropriate point?

HTH
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

gob

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Code generation of string.
« Reply #2 on: October 07, 2012, 11:54:39 pm »
I only want to do it for some classes.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Code generation of string.
« Reply #3 on: October 08, 2012, 03:35:39 am »
You could either provide a stereotype for those classes and have a code generation template specialization for these, or you could specify a tagged value and determine class name generation based upon this value in the general template.

Best regards,
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/