We need a tool to create and draw UML class diagrams in the program. Not by code, but by code. Maybe, who knows a similar library, API in C ++ or Objective-C?
- duplicate stackoverflow.com/questions/405953/generating-uml-from-c-code - rikimaru2013
- @ rikimaru2013 that's quite different there! I need a library for creating and rendering diagrams with code in the application, but not a program for converting UML to code and vice versa. - AivanF.
- I am afraid that there is simply no such tool. You can search for a tool that will build a relationship graph by code. But you have to draw yourself, because Who will do the rendering library when the drawing canvas is different from the OS, to the OS and from library to library? - ixSci 4:05 pm
|
1 answer
Try using plantuml, dot (Graphviz). The first is Java, but you can try porting the code to C ++. The second is to generate the source code in the code and feed it to dot. In general, this is the option that I would use.
Either smoke something like:
- I hoped that the answer would be better. What recommendation did you use? - Monah Tuk 3:19 pm
- I apologize, did not see the comment before. I decided to switch to C # and call Graphviz (for this I found and slightly corrected a nice wrapper). Far from perfect, but works without problems. - AivanF.
|