关闭

How to use Trace2UML together with Doxygen

标签: umldocumentationclasschartsinsert
730人阅读 评论(0) 收藏 举报
分类:

How to use Trace2UML together with Doxygen

From Doxygen version 1.5.3 doxygen supports sequence charts inside thedocumentation. Original doxygen works together with mscgen(a tool similar to Trace2UML).

But because Trace2UML is now call compatible with mscgen, you can useTrace2UML instead. The only thing you have to do by hand, is to RENAME"Trace2UML.exe" into "mscgen.exe" (or do a symbolic link, onLinux). This is because Doxygen has the tool name hard coded in its binary (maybethis will change one day ;-)

So follow the Doxygen documentation to insert a sequence diagram with thecommands "\msc" and "\endmsc" but use Trace2UML syntax todescribe the sequence diagram:

....

\mcs

         ~ (!) Class1
         ~ ==> Class1 Create()
    Class1 (!) Class2
    Class1 ==> Class2 Init()
    Class1 <== Class2 0
         ~ <== Class1 0

\endmsc

...

Than Doxygen will place the following  graphic into your documentation:


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:375689次
    • 积分:5458
    • 等级:
    • 排名:第4897名
    • 原创:70篇
    • 转载:210篇
    • 译文:81篇
    • 评论:14条
    文章分类
    网摘
    最新评论