Hello :)
Your first problem is solved by modifying the standart-properties of your
C++ settings in Rose. Choose Tools->Option from menu and select the C++ tab.
In the settings for Module Body/Module Specification you'll find a row
called 'GenerateEmptyRegions'. Set it to 'All' or 'Preserved' (in both
lists) and Rose'll generate some more preserved regions in your header/code
like this:
file://## begin module%368355F400E3.includes preserve=yes
file://## end module%368355F400E3.includes
Add your additional includes between this lines. Oh, I forgot: Both lists
have a row called 'IncludeOrder'. I don't know if the've a default setting -
I use 'ARMI' (click right mouse over the row for help). Each character has
it's own region:
A module.AdditionalIncludes region
I module.Includes region
M AFX_INCLUDES group (Visual C++ only)
H header file
P precompiled header file
R Rose-generated #includes.
If you got a positive answer to your second question - please forward it to
me. I searched a while but didn't find a solution :(
Thanks,
Frank
+--------------------------------------------------------------------------
CAT Computer Anwendung Technologie GmbH
Niederlassung Wilnsdorf
57234 Wilnsdorf Tel.: ++49 2737 97008
Germany eMail: [EMAIL PROTECTED]
+--------------------------------------------------------------------------
----- Original Message -----
From: "Jerome Debard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 7:01 PM
Subject: (ROSE) Code generation in C++
>
>
> Hi,
>
> I am using Rational Rose 2000 to generate C++ code (not
> Visual C++ code) and I have a few troubles.
>
> These questions have probably been sent before but I cannot find
> any information on them.
>
> I would like to add function headers outside each function
> (outside the scope of the file://## begin ... file://## end managed by the
code
> generator). The problem is that my comments are suppressed
> each time I re-generate the module.
>
> My other problem is related to indentation. We have rules
> on how to present functions in order to increase the clarity.
>
> For instance :
>
> STATUS MyFunction
> (
> UINT32 MyU32Value,
> BOOL MyBoolValue,
> int * MyPtrOnU32Value
> )
> {
> ...
> }
>
> I would like to setup the C++ code generator to generate the
> functions using this indentation for the parameters instead of
> writing everything on the same line.
>
> If anyone has any info or hint on this, please let me know.
>
> Thanks.
>
> Jerome.
>
> Jerome Debard
> VMETRO asa
> Brynsveien 5
> N-0667 Oslo, Norway
> Phone: +47 22 10 60 90
> Fax: +47 22 10 62 02
> Email: [EMAIL PROTECTED]
> http://www.vmetro.com
> ************************************************************************
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> *************************************************************************
>
>
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************