C++ Code Generation

General discussions about code engineering

Moderator: Moderators

Re: C++ Code Generation

Postby bhoomchai » Thu Sep 30, 2010 1:36 am

Thank you for your recommendation. I'll pass your message to our development team to add to the wish list.
For the question about generating method implementation in the class scope, you can go the the menu Options->Project and select C++ Language Options. You'll see the option, "Generate methods body into class". This should be the option that you're looking for.
Please note that, this option will have an affect for the first time generation only.

For the sample project that you attached with the previous message, seem like the mdr file is corrupted. I get the message from MagicDraw that the mdr file cannot be loaded. So, I create a new code engineering set and manually create Realization to make the code generator to generate the content to one file. Please see the attached file as an example.
The attached zip file includes
- MagicDraw project file
- mdr file
- Generated code.
You do not have the required permissions to view the files attached to this post.
bhoomchai
Customer Support
Customer Support
 
Posts: 36
Posts Rating:5
Joined: Thu Jan 21, 2010 12:38 am

Previous

Return to Code engineering

Who is online

Users browsing this forum: No registered users and 0 guests