Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C++ param and return documentation

3 views
Skip to first unread message

John B

unread,
Jul 17, 2007, 12:30:49 PM7/17/07
to

Hi,

Can anyone tell me if it's possible to force Together (I'm using T2006 R2 for Eclipse) to write the "parameters" and "return type" properties of a method to the generated C++ header file. e.g.

Properties tab:
Property Value
-------- -----
parameters int myParam1, int myParam2
return type int

I'd like to see the parameters and return type in MyClass.h

/**
* @param myParam1
* @param myParam2
* @return int
*/
int myOperation(int myParam1, int myParam2);

Is it possible to specify which properties are written to the header file?

Thanks,

John B.

ElenaA

unread,
Jul 25, 2007, 10:45:42 AM7/25/07
to
sorry, don't understand. Doesn't Tg write the parameters/return valur to the
header file when you enter the values in Properties inspector?

"John B" <john...@freeuk.com> wrote in message
news:469ceeb9$1...@newsgroups.borland.com...

John B

unread,
Aug 6, 2007, 6:40:54 AM8/6/07
to

The parameters are written to the method signature correctly in the .h header file e.g.

int myOperation(int myParam1, int myParam2);

BUT, the 'javadoc' comments DO NOT contain the tags '@param' and '@return'. i.e. I'd like to see:

/**
* @param myParam1
* @param myParam2
* @return int
*/
int myOperation(int myParam1, int myParam2);

But all I see is:

/**


*/
int myOperation(int myParam1, int myParam2);


I know this functionality exists for Java modelling projects and I'd like to use the same concepts for my C++ modelling project.

Thanks,

John B.

ElenaA

unread,
Aug 6, 2007, 11:02:40 AM8/6/07
to
do you mean a possibility to enter javadoc-like tags for C++ methods using
Properties inspector? This functionality is not available in R2. I can
suggest using Custom properties tab to enter such comments, or add them as
custom properties via profiles


"John B" <john...@freeuk.com> wrote in message

news:46b6fab6$1...@newsgroups.borland.com...

0 new messages