staruml / staruml-cpp

C++ extension for StarUML
MIT License
173 stars 66 forks source link

C++ Extension for StarUML

This extension for StarUML(http://staruml.io) support to generate C++ code from UML model and to reverse C++ code to UML model. Install this extension from Extension Manager of StarUML.

:warning: This extensions do not provide perfect reverse engineering which is a test and temporal feature. If you need a complete reverse engineering feature, please check other professional reverse engineering tools.

UMLPackage

UMLClass

UMLAttribute

UMLOperation

UMLInterface

UMLEnumeration

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

UMLAssociationEnd

UMLGeneralization & UMLInterfaceRealization

C++ Reverse Engineering

  1. Click the menu (Tools > C++ > Reverse Code...)
  2. Select a folder containing C++ source files to be converted to UML model elements.
  3. CppReverse model will be created in the Project.

Belows are the rules to convert from C++ source code to UML model elements.

C++ Namespace

C++ Class

C++ Field (to UMLAttribute)

C++ Field (to UMLAssociation)

C++ Method

C++ Enum


Licensed under the MIT license (see LICENSE file).