Enhanced C++ code generation and improved attributes

Version 6.15 adds new source code template for C++, adds new features for UML attributes and associations. It also fixes reported bugs.

New features and improvements

  • Enhanced C++ source code generation - C++ access specifier sections [RQ#212]
  • Added new source code template for C++: Separate Header - generates separate cpp and header files [RQ#174]
  • Added support for constraints to attributes (UML class)
  • Added support for ownership of association end
  • Added new template language command: FilterByVisibility
  • Added ID and Text property for SysML Requirement

Fixed bugs

  • Removed redundant separators in menu [RQ#219]
  • Removed opacity setter from palette tab in color picker (now is only in color mixer tab)
  • Fixed problem with setting of opaque background for exported diagrams [#218]
  • Fixed not remembering width of sidebar when switching between tabs [#217]
  • Fixed generation of NHibernate Fluent code for mapping of not nullable columns
  • Fixed editing of attribute ordering parameter
  • Fixed renaming project from the project tree
  • Fixed end locking of rectangular relation after changing to simple horizontal or vertical line
  • Fixed Copy Special/Copy as Metafile [RQ#220]
  • Fixed SysML Block copying
  • Fixed updating of requirement table in requirement diagram after editing requirements in diagram

Downloads

Comments

Mark Levesque 30 May 2014 17:55:01

code generation

Hi,

Just started playing with the app. Looks good so far. I was wondering if you could make it so when code is generated, any existing code within a member function in the target file would be incorporated in the new generated file.

E.g., If I had edited a file with:

public void incrementCount()

{

count++;

}

the next time I generated from the model the statements in the function would be preserved.

Also, any way to specify comments in the model that will get carried over to the code? I was only able to do something like this:

int /* test comment */ count;

Thanks.

Dusan Rodina - softwareideas.net 2 June 2014 9:45:22

RE: code generation

Hi,

Thank you very much!

You can specify comments for classes, fields and methods. You can specify comments for generated source code using documentation box.

If you want to set documentation for class: Right-click on class, choose Properties from context menu, switch to Documentation tab and type the documentation text for the field represented by this attribute.

If you want to set documentation for field: Right-click on class, choose Properties from context menu, switch to Attributes tab, select an attribute, click on Edit, switch to Documentation tab and type the documentation text.

If you want to set documentation for method: Right-click on class, choose Properties from context menu, switch to Operations tab, select an operation, click on Edit, switch to Documentation tab and type the documentation text for the method represented by this operation.

You can define also source code which will be included to methods in generated source code: right-click on class, choose Properties from context menu, switch to Operations tab, select an operation, click on Edit, switch to Body tab, choose programming language from Language drop down and set the source code for the body of the method.

It is not yet possible to preserve source code of methods in a target file.

New Comment

Comment