I write kursach) I know that UML and writing code are not executed in this order. But there is simply no time to first do the UML, and then start coding, because it is VERY long and can be useful for large projects. At first I started doing this, and then I realized that in the process of implementation all the logic could change 10 times and the diagrams would have to be redone (the structure of the database had already changed 2 times). Therefore, I decided not to waste time and write a program first, and then take up charts.

I am writing in Visual Studio 2010 in C ++ under MFC. The only thing I know is 2 ways of extracting class diagrams - “reconstruct” in Visio and get the diagram using built-in Visual tools.

What else and how can you extract? Maybe programs or just somehow run through the calls and get, for example, a sequence diagram.

P.S. The teacher is very important these diagrams and their proper preparation. He is even unlikely to watch the program. But UML is for sure.

  • unless the studio does not generate on the code itself? - Gorets
  • @Gorets Maybe. Then how to do it? - Ray
  • four
    > there is no time to first do the UML, and then proceed to coding, because it is VERY long> in the process of implementation, all the logic can change 10 times and the diagrams will have to be redone Two proverbs are recalled: "time is money" and "stingy pays twice." - northerner
  • This is not the case. I will add a program after 2 days and I’ll make a UML by code. Got something to advise? - Ray

2 answers 2

Enterprise Architect, checked works. Class diagram forms on the basis of the code. In the Code tab, there is a command to select (import) a file, after which the program will automatically generate a diagram. You can work with the diagram. and if you want to save. Trial version can be installed, and if you want to find in the internet)

    2 best in my opinion way:

    • The complete class hierarchy (for C ++ is quite detailed), as well as other useful documentation can be obtained using Doxygen . The tool is free, open and very useful in the case when you want to have fresh documentation on a constantly changing project.
    • The html page on which you can dynamically generate UML diagrams can be obtained using Doxygraph . The tool is open and based on Doxygen. An example can be found here .