C ++ development is a standard. Different implementations have different understandings and implementation levels. The C # and Java languages are mastered by commercial companies and there are few problems in this regard. I hope this article will teach you more things.
IBM has released a visual modeling tool for UML2.0, Rational Software Architect. See note ①) and IBM Rational Software Modeler ). Although they support better improvements in the modeling function and Support updated standards.
The highlights of RSA are mainly the support for Java applications, while IBM Rational Software Modeler focuses on system model design, if you want to analyze the system code written in C ++ from the structure, Rational Rose is the preferred tool. The next article will explain in detail how to use the reverse transfer project of Rational Rose for system analysis.
1. Introduction to Rational Rose Reverse Engineering
Reverse Engineering Reverse Engineer) Is the function of generating a model from the code of the existing system. The main purpose of analyzing existing code is to understand the code structure and data structure, the corresponding model diagrams are class diagrams, data model diagrams, and component diagrams. For descriptions of various UML model diagrams, see comment ③ ).
- Introduction to C ++ programming skills
- Analysis of C ++ programming instructions and learning
- Describe how to enhance the functions of Visual C ++ Development Environment
- Describes in detail how to accurately Write C ++ languages.
- Several minutes to teach you how to use Visual C ++ 6.0 Design programs
That is, the result obtained through the reverse engineering of Rational Rose. The reverse engineering functions supported by Rational Rose are powerful, including C ++, VB, VC, Java, CORBA, and database DDL scripts. They can be directly connected to DB2, SQL Server, Oracle, Sybase, and other databases import the Schema and generate a data model.
Many large C ++ products involve the use of databases. Development of such large systems, especially secondary development, the main difficulty is to analyze the source code and database structure. Using Rose's reverse engineering function, you can convert the code class diagram and database Schema> Data Model diagram. To solve these two difficulties, developers and designers can easily, quickly, and methodically master the system structure during the upgrade, analysis, and development of such large systems, there is no need to worry about analyzing the huge system structure.
Ii. How to Use Rational Rose for C ++ code analysis
This section describes how to use Rose's reverse engineering to generate a UML Model and analyze the structure of C ++ code. Rational Rose supports Code Conversion and reverse engineering from standard C ++ and Visual C ++ models. The following describes in detail the steps and specific operations of the two C ++ development projects.
1. ansi c ++ Standard C ++) Reverse Engineering Reverse Engineer) to use standard C ++ Reverse engineering, you need to create a component in the component diagram component view ), set the information of the component to be converted, that is, the language of the component, the files contained, the path of the file, and the file suffix, then, the Reverse Engineer can convert the code into a class chart based on the given information.
A) Right-click Component View and choose New> Component to create a New Component.
Set Source file root directory to the path where your C ++ development is located, and add the file to be converted to Project Files. Perform other settings as needed, such: header file extension.