Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: DescriptionTemplate for enum literals?
Topic Summary:
Created On: 23-Nov-2006 13:59
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-Nov-2006 13:59
User is offline View Users Profile Print this message


Jens Laudien

Posts: 1
Joined: 27-Aug-2004

Hello Community,

in order to match our coding standards I set the following properties:

C_CG :: Configuration :: DescriptionBeginLine = "* "
C_CG :: Configuration :: DescriptionEndLine = ""
C_CG :: Attribute :: DescriptionTemplate = "/* $Description */"
C_CG :: Class :: DescriptionTemplate = "/* $Description */"
C_CG :: Event :: DescriptionTemplate = "/* $Description */"
C_CG :: Package :: DescriptionTemplate = "/* $Description */"
C_CG :: Relation :: DescriptionTemplate = "/* $Description */"
C_CG :: Type :: DescriptionTemplate = "/* $Description */"

C_CG :: Operation :: DescriptionTemplate =
"/*+*************************
* $Name
* --------------------------
* $Description
*************************-*/"


The idea is, that there is a function header that looks like this:
[COLOR=DarkGreen][FONT=Courier New]
/*+*************************
* my_foo
* --------------------------
* This is my
* Multiline Description.
* It describes my_foo.
*************************-*/[/FONT][/COLOR]

But now I have got trouble with my enumerations:

[FONT=Courier New][COLOR=DarkGreen]/* Description of my_enum */[/COLOR]
[COLOR=DarkSlateBlue]typedef enum[/COLOR] my_enum {
LIT_ONE = 1, * Description of the first literal
LIT_TWO = 2 * Description of the second literal
} my_enum;[/FONT]

A literal of an enumeration is followed by its comment/description. But the Code Generator does not use Attribute :: DescriptionTemplate or Argument :: DescriptionTemplate but the settings of DescriptionBeginLine and DescriptionEndLine instead. Actually, these settings are supposed to be used for multi-line strings only.

Where can I specify how these comments are generated?
Any idea?
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.