Yes, with ANSI C++ it's no problem. In Component View you have to create a
component for each file you want to code-generate, i.e. one file of type
Package Body (or equivalent), which when set to the C++ language, will
result in the .CPP-file to be generated, and one component stereotyped to
Package Specification, which when set to C++ language, will result in the
.HPP (or .H)-file to be generated. Then specify which classes you want to be
generated in each of these component by ticking/assigning the classes from
the 'Realizes'-tab in the Component Specification Dialog. Remember to to
this assignment for both components (both .cpp and .h).
When generating code, all classes assigned to the component representing the
.CPP-file will be generated in a .CPP-file with a filename equivalent to the
name of the component.
Hope this answers your question :-)
Regards
Arne Styve
> -----Original Message-----
> From: Frank Adcock [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 21, 2001 12:04 AM
> To: 'Rose (E-mail)'
> Subject: (ROSE) Multiple class ANSI C++ Generation into single file
>
>
>
> Is it possible to have multiple classes generated into the
> one source file.
> This would be particularly useful in terms of including exception code
> within the same file as the classes generating the exceptions
> and much more
> user friendly for the library users.
>
> Regards
>
> --------------------------------------------------------------
> --------------
> ----------------
> Frank Adcock Tel: +61 7 3880 2586
> Whitesmiths Australia Pty Ltd Fax: +61 7 3880 2133
> www.whitesmiths.com.au Email:
> [EMAIL PROTECTED]
> --------------------------------------------------------------
> --------------
> ----------------
>
> **************************************************************
> **********
> * 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
*
*************************************************************************
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.
************************************************************************
* 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
*
*************************************************************************