Automatic code generation into C++ Generation
MetaEdit+ offers automated code generation of C++ header files from class diagrams according to the following rules:
- One header file for each class
- Multiple inheritance supported, uses visibility and virtually defined inheritance
- Documentation of class included as comment
- Attributes and operations ordered by their access level: public, private, protected
- Comments out attributes with undefined data types, for filling in later
- Undefined return type treated as void
- Constraints of attributes and operations included as comment
- Aggregation structures between classes included as comment, for possible adding as attributes
Generate C++ function definitions from class diagrams according to the following rules:
- One cpp file for each class
- Include statement for header file
- Undefined return type treated as void
- Each operation is specified by name and related class together with possible parameters and their data types
- Documentation of operation included as comment
- Operation body is included into the function declaration, properly indented



