Hy again.
I wasn't able to explain my problem well.
I'm using C++ language.
I have a class, say CMatrix, with this constructor:
CMatrix(int RowNum, int ColNum);
I have no problem to add it to the Rose model (I'm working with RoseRT ) and
to remove default constructor.
But building the model I get an error: the InitFunctionBody needs a default
constructor.
I want to modify InitFunctionBody in order to pass it some parameters
(RowNum and ColNum in the example above).
Thank you again for any other help.
Andrea.
----- Original Message -----
From: Picarello, Anthony <[EMAIL PROTECTED]>
To: Andrea Scaggiante <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 5:25 PM
Subject: RE: (ROSE) InitFunctionBody
Well, I am not familiar with that property (did not find it in help system),
nor do I know what language your are using. But here is one solution:
- turn off "generate default constructor" code generation for your class
- manually add a constructor operation (leave return type blank) to the
class, with the desired parameters
-Tony
-----Original Message-----
From: Andrea Scaggiante [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 11:06 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) InitFunctionBody
Hello everybody.
I have a class that can't be inizilized with a default constructor: I need
to pass some parameters to the constructor.
I saw on the Rose on-line help it is possible to change the InitFunctionBody
for this situation.
Has someone an example?
I'm not able to find it on the help pages.
Thanks a lot,
Andrea Scaggiante
Software Engineer
Tecnomare SpA - Robotics &
Web: http://www.tecnomare.it
************************************************************************
* 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
*
*************************************************************************