This extension for StarUML(http://staruml.io) support to generate Cpp code from UML model.
- converted to folder.
- converted to Cpp Class. (as a separate
.hfile) visibilityto one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.isFinalSpecificationandisLeafproperty tofinalmodifier.- Default constructor is generated.
- All contained types (UMLClass, UMLInterface, UMLEnumeration) are generated as inner type definition.
- TemplateParameter to Cpp Template.
- converted to Cpp Field.
visibilityproperty to one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.nameproperty to field identifier.typeproperty to field type.multiplicityproperty to vector type.isStaticproperty tostaticmodifier.isLeafproperty tofinalmodifier.defaultValueproperty to initial value.- Documentation property to JavaDoc comment.
- converted to Cpp Methods.
visibilityto one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.nameproperty to method identifier.isAbstractproperty tovirtualmodifier. (TODO need options to create pure-virtual function or virtual function)isStaticproperty tostaticmodifier.- UMLParameter to Cpp Method Parameters.
- UMLParameter's name property to parameter identifier.
- UMLParameter's type property to type of parameter.
- UMLParameter with
direction=returnto return type of method. When no return parameter,voidis used. - UMLParameter with
isReadOnly=truetoconstmodifier of parameter.
- converted to Cpp Class. (as a separate
.hfile) visibilityproperty to one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.- all method will treated as pure virtaul.
| Weekdays |
|---|
| Monday |
| Tuesday |
| Saturday |
converts
/* Test header @ toori67
* This is Test
* also test
* also test again
*/
#ifndef (_WEEKDAYS_H)
#define _WEEKDAYS_H
enum Weekdays { Monday,Tuesday,Saturday };
#endif //_WEEKDAYS_H- converted to Cpp Enum. (as a separate
.hfile) visibilityproperty to one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.- UMLEnumerationLiteral to literals of enum.
- converted to Cpp Field.
visibilityproperty to one of modifierspublic,protected,private. If visibility is not setted, consider asprotected.nameproperty to field identifier.typeproperty to field type.- If
multiplicityis one of0..*,1..*,*, then collection type (std::vector<T>) is used. defaultValueproperty to initial value.
- converted to Cpp Inheritance (
:). - Allowed for UMLClass to UMLClass, and UMLClass to UMLInterface.
Licensed under the MIT license (see LICENSE file).