Book a Demo

Author Topic: Parameter description with custom template  (Read 3627 times)

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Parameter description with custom template
« on: March 25, 2010, 02:28:19 am »
Hi
referring to the code template framework,

I'm trying to list the parameters description in the operation notes (language "C", doxygen style documentation)

I've created a custom template named "Parameter_Pardesc" that contains the following:
%paramName% %paramNotes%

In the Operation notes template, I've added the following:
%list="Parameter_Pardesc" @separator="\n" @indent="**  \param "%

It doesn't work...  :(

If I add the following
%list="Parameter" @separator="\n" @indent="**  \param "%
it works (it invokes the "Parameter" template)

Do you have any suggestion?
Many thanks
Davide

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Parameter description with custom template
« Reply #1 on: March 25, 2010, 08:30:38 am »
At a glance I see your custom list contains only a single underscore.  They actually use a double underscore.

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Parameter description with custom template
« Reply #2 on: March 25, 2010, 06:40:49 pm »
Ooops....  ::)

Thank you that was my mistake...

BTW, do you know how to list the pre-conditions and post-conditions described in the operation properites?

Thank you very much !!
Davide

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Parameter description with custom template
« Reply #3 on: March 26, 2010, 08:40:50 am »
They are currently only accessible via the EXEC_ADD_IN call.