Book a Demo

Author Topic: C Code generation note from function parameter  (Read 3022 times)

Daimonion

  • EA Novice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
C Code generation note from function parameter
« on: May 12, 2017, 07:35:31 pm »
Actually i'm designing several interfaces in EA class diagram for my project im programming in C.


For this i want to use the note field from a parameter which i can write in operations view. (See Screenshot)


My code generator template for Operation Notes looks actually like this and prints me the complete note i can write to the notes field for a function:

Code: [Select]
%if genOptGenComments != "T" or genOptCGenMethodNotesInHeader != "T"%
%endTemplate%
%PI=""%
$wrapLen = %genOptWrapComment%
$notes = %opNotes%
$notes = %TRIM($notes)%
%if $notes == ""%
%endTemplate%
$notes = %WRAP_LINES($notes, $wrapLen, " * ")%
/*!\n *
%MID($notes,3)%\n
 */

As you can see i can access the notes filed via $notes.
How can i access the notes field from an parameter? (red rectangle in screenshot)




Any suggestions i can use the fields in operation notes?