@@ -25,6 +25,14 @@ diagrams:
25
25
- ' {% set e=element("A") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"'
26
26
- ' {% set e=element("clanguml::t00002::B") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"'
27
27
- ' note for {{ alias("D") }} "{{ comment("D").text }}"'
28
+ graphml :
29
+ notes :
30
+ ' clanguml::t00002::A ' :
31
+ - ' {% set e=element("A") %}{{ trim(e.comment.brief.0) }}'
32
+ ' clanguml::t00002::B ' :
33
+ - ' {% set e=element("clanguml::t00002::B") %}{{ trim(e.comment.brief.0) }}'
34
+ ' clanguml::t00002::D ' :
35
+ - ' {% set e=element("D") %}{{ comment("D").text }}'
28
36
` ` `
29
37
## Source code
30
38
File ` tests/t00002/t00002.cc`
@@ -704,8 +712,9 @@ private:
704
712
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
705
713
<desc><![CDATA[Basic class diagram example]]></desc>
706
714
<key attr.name="id" attr.type="string" for="graph" id="gd0" />
707
- <key attr.name="type" attr.type="string" for="graph" id="gd1" />
708
- <key attr.name="using_namespace" attr.type="string" for="graph" id="gd2" />
715
+ <key attr.name="diagram_type" attr.type="string" for="graph" id="gd1" />
716
+ <key attr.name="name" attr.type="string" for="graph" id="gd2" />
717
+ <key attr.name="using_namespace" attr.type="string" for="graph" id="gd3" />
709
718
<key attr.name="id" attr.type="string" for="node" id="nd0" />
710
719
<key attr.name="type" attr.type="string" for="node" id="nd1" />
711
720
<key attr.name="name" attr.type="string" for="node" id="nd2" />
@@ -718,74 +727,99 @@ private:
718
727
<key attr.name="label" attr.type="string" for="edge" id="ed2" />
719
728
<key attr.name="url" attr.type="string" for="edge" id="ed3" />
720
729
<graph id="g0" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
721
- <data key="gd2 ">clanguml::t00002</data>
730
+ <data key="gd3 ">clanguml::t00002</data>
722
731
<node id="n0">
723
732
<data key="nd1">class</data>
724
733
<data key="nd2"><![CDATA[A]]></data>
725
734
<data key="nd3">abstract</data>
726
735
<data key="nd6">false</data>
727
- <data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f /tests/t00002/t00002.cc#L7</data>
736
+ <data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4 /tests/t00002/t00002.cc#L7</data>
728
737
<data key="nd5">This is class A</data>
729
738
</node>
730
739
<node id="n1">
731
740
<data key="nd1">class</data>
732
741
<data key="nd2"><![CDATA[B]]></data>
733
742
<data key="nd6">false</data>
734
- <data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f /tests/t00002/t00002.cc#L16</data>
743
+ <data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4 /tests/t00002/t00002.cc#L16</data>
735
744
<data key="nd5">This is class B</data>
736
745
</node>
737
746
<node id="n2">
738
747
<data key="nd1">class</data>
739
748
<data key="nd2"><![CDATA[C]]></data>
740
749
<data key="nd6">false</data>
741
- <data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f /tests/t00002/t00002.cc#L27</data>
750
+ <data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4 /tests/t00002/t00002.cc#L27</data>
742
751
<data key="nd5">This is class C - class C has a long comment</data>
743
752
</node>
744
753
<node id="n3">
745
754
<data key="nd1">class</data>
746
755
<data key="nd2"><![CDATA[D]]></data>
747
756
<data key="nd6">false</data>
748
- <data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f /tests/t00002/t00002.cc#L36</data>
757
+ <data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4 /tests/t00002/t00002.cc#L36</data>
749
758
<data key="nd5">D</data>
750
759
</node>
751
760
<node id="n4">
752
761
<data key="nd1">class</data>
753
762
<data key="nd2"><![CDATA[E]]></data>
754
763
<data key="nd6">false</data>
755
- <data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f /tests/t00002/t00002.cc#L61</data>
764
+ <data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4 /tests/t00002/t00002.cc#L61</data>
756
765
<data key="nd5">E</data>
757
766
</node>
758
- <edge id="e0" source="n1" target="n0">
767
+ <node id="n5">
768
+ <data key="nd1">note</data>
769
+ <data key="nd2"><![CDATA[This is class A]]></data>
770
+ </node>
771
+ <node id="n6">
772
+ <data key="nd1">note</data>
773
+ <data key="nd2"><![CDATA[This is class B]]></data>
774
+ </node>
775
+ <node id="n7">
776
+ <data key="nd1">note</data>
777
+ <data key="nd2"><![CDATA[
778
+ This is class D
779
+ which is a little like B
780
+ and a little like C
781
+ ]]></data>
782
+ </node>
783
+ <edge id="e0" source="n5" target="n0">
784
+ <data key="ed0">none</data>
785
+ </edge>
786
+ <edge id="e1" source="n6" target="n1">
787
+ <data key="ed0">none</data>
788
+ </edge>
789
+ <edge id="e2" source="n7" target="n3">
790
+ <data key="ed0">none</data>
791
+ </edge>
792
+ <edge id="e3" source="n1" target="n0">
759
793
<data key="ed0">extension</data>
760
794
<data key="ed1">public</data>
761
795
</edge>
762
- <edge id="e1 " source="n2" target="n0">
796
+ <edge id="e4 " source="n2" target="n0">
763
797
<data key="ed0">extension</data>
764
798
<data key="ed1">public</data>
765
799
</edge>
766
- <edge id="e2 " source="n3" target="n0">
800
+ <edge id="e5 " source="n3" target="n0">
767
801
<data key="ed0">association</data>
768
802
<data key="ed2">as</data>
769
803
<data key="ed1">private</data>
770
804
</edge>
771
- <edge id="e3 " source="n3" target="n1">
805
+ <edge id="e6 " source="n3" target="n1">
772
806
<data key="ed0">extension</data>
773
807
<data key="ed1">public</data>
774
808
</edge>
775
- <edge id="e4 " source="n3" target="n2">
809
+ <edge id="e7 " source="n3" target="n2">
776
810
<data key="ed0">extension</data>
777
811
<data key="ed1">public</data>
778
812
</edge>
779
- <edge id="e5 " source="n4" target="n0">
813
+ <edge id="e8 " source="n4" target="n0">
780
814
<data key="ed0">association</data>
781
815
<data key="ed2">as</data>
782
816
<data key="ed1">private</data>
783
817
</edge>
784
- <edge id="e6 " source="n4" target="n1">
818
+ <edge id="e9 " source="n4" target="n1">
785
819
<data key="ed0">extension</data>
786
820
<data key="ed1">public</data>
787
821
</edge>
788
- <edge id="e7 " source="n4" target="n2">
822
+ <edge id="e10 " source="n4" target="n2">
789
823
<data key="ed0">extension</data>
790
824
<data key="ed1">public</data>
791
825
</edge>
0 commit comments