Sudha,

Any text that you place in the documentation field of the class and
operation specification dialogs will get generated as comments in the
generated code so you could place your headers there.  One problem
though...as far as operations go you will be able to generate the headers in
the .h file and not in the .cpp file.  I have attached a script that adds
documentation template to all of the operations in any (selected) or all of
the classes in your model.  You could try this and see if it works for you.
Be sure to test it on a test model first though.

Let me know if you have any questions.

Regards

Vishu  

**********

Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]
Rose Technical Support Engineer

Rational Customer Service - Committed to Service Excellence
SCP Certified:  http://www.rational.com/support/scp.jsp

Rational User Conference 2002.....Freedom to Create!
Call for Papers Now Open at http://www.rational.com/ruc
August 18-22, 2002
Lake Buena Vista, Florida

**********

-----Original Message-----
From: Sudha Rani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 7:27 PM
To: [EMAIL PROTECTED]; Sudha Paidipati
Subject: (ROSE) Class HEADERS/ Function Headers

Hi,

We are  using Rational Rose for code generation from UML models.
        When i generate code using rose, it generates the CPP and Header
files.    Now i want to add function
        headers to each function in the source file, and class header to
each class in the header file. Is there a way in
        Rose to get the headers done? I tried my best to find some
option, but it was not there.    Any help on this
        would be appreciated.

         Example of function header required:

/********************************************************************
        * Function :
Suspend                                               *
        * Returns  :  TRUE or
FALSE                                         *
        * Parameters:
None                                                  *
        * Purpose  :  This function is used to suspend the
operation        *
        *             of the USB
peripheral                                 *

********************************************************************/
        int CUSBPeripheral::Suspend()
        {  int nData = 0;
         FireEvent(USB_SUSPEND ,&nData);  if (m_nUSBSuspend == FALSE)
         {
          m_nUSBSuspend = TRUE;
         }
         //set the resume bit in USBSTA register
         m_ucCtrlStatRegs[USBSTA] = m_ucCtrlStatRegs[USBSTA] |
SETSUSPENDBIT;
        return TRUE; }


Regards
Sudha.


Attachment: DocumentationTemplate.ebs
Description: Binary data

Reply via email to