Skip to content

Latest commit

 

History

History
226 lines (217 loc) · 6.54 KB

t00035.md

File metadata and controls

226 lines (217 loc) · 6.54 KB

t00035 - PlantUML class diagram layout hints test case

Config

diagrams:
  t00035_class:
    type: class
    glob:
      - t00035.cc
    using_namespace: clanguml::t00035
    include:
      namespaces:
        - clanguml::t00035
    layout:
      Center:
        - up: Top
        - down: Bottom
        - left: Left
        - right: Right

Source code

File tests/t00035/t00035.cc

namespace clanguml {
namespace t00035 {

struct Top { };

struct Left { };

struct Center { };

struct Bottom { };

struct Right { };

} // namespace t00035
} // namespace clanguml

Generated PlantUML diagrams

t00035_class

Generated Mermaid diagrams

t00035_class

Generated JSON models

{
  "diagram_type": "class",
  "elements": [
    {
      "bases": [],
      "display_name": "Top",
      "id": "17928503069578358181",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "Top",
      "namespace": "clanguml::t00035",
      "source_location": {
        "column": 8,
        "file": "t00035.cc",
        "line": 4,
        "translation_unit": "t00035.cc"
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "Left",
      "id": "1940502848641023570",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "Left",
      "namespace": "clanguml::t00035",
      "source_location": {
        "column": 8,
        "file": "t00035.cc",
        "line": 6,
        "translation_unit": "t00035.cc"
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "Center",
      "id": "15466436334795267374",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "Center",
      "namespace": "clanguml::t00035",
      "source_location": {
        "column": 8,
        "file": "t00035.cc",
        "line": 8,
        "translation_unit": "t00035.cc"
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "Bottom",
      "id": "13173528636859019363",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "Bottom",
      "namespace": "clanguml::t00035",
      "source_location": {
        "column": 8,
        "file": "t00035.cc",
        "line": 10,
        "translation_unit": "t00035.cc"
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "Right",
      "id": "1600974560722978582",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "Right",
      "namespace": "clanguml::t00035",
      "source_location": {
        "column": 8,
        "file": "t00035.cc",
        "line": 12,
        "translation_unit": "t00035.cc"
      },
      "template_parameters": [],
      "type": "class"
    }
  ],
  "name": "t00035_class",
  "package_type": "namespace",
  "relationships": [],
  "using_namespace": "clanguml::t00035"
}

Generated GraphML models

<?xml version="1.0"?>
<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">
 <key attr.name="id" attr.type="string" for="graph" id="gd0" />
 <key attr.name="diagram_type" attr.type="string" for="graph" id="gd1" />
 <key attr.name="name" attr.type="string" for="graph" id="gd2" />
 <key attr.name="using_namespace" attr.type="string" for="graph" id="gd3" />
 <key attr.name="id" attr.type="string" for="node" id="nd0" />
 <key attr.name="type" attr.type="string" for="node" id="nd1" />
 <key attr.name="name" attr.type="string" for="node" id="nd2" />
 <key attr.name="stereotype" attr.type="string" for="node" id="nd3" />
 <key attr.name="url" attr.type="string" for="node" id="nd4" />
 <key attr.name="tooltip" attr.type="string" for="node" id="nd5" />
 <key attr.name="is_template" attr.type="boolean" for="node" id="nd6" />
 <key attr.name="type" attr.type="string" for="edge" id="ed0" />
 <key attr.name="access" attr.type="string" for="edge" id="ed1" />
 <key attr.name="label" attr.type="string" for="edge" id="ed2" />
 <key attr.name="url" attr.type="string" for="edge" id="ed3" />
 <graph id="g0" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
  <data key="gd3">clanguml::t00035</data>
  <node id="n0">
   <data key="nd1">class</data>
   <data key="nd2"><![CDATA[Top]]></data>
   <data key="nd6">false</data>
   <data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00035/t00035.cc#L4</data>
   <data key="nd5">Top</data>
  </node>
  <node id="n1">
   <data key="nd1">class</data>
   <data key="nd2"><![CDATA[Left]]></data>
   <data key="nd6">false</data>
   <data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00035/t00035.cc#L6</data>
   <data key="nd5">Left</data>
  </node>
  <node id="n2">
   <data key="nd1">class</data>
   <data key="nd2"><![CDATA[Center]]></data>
   <data key="nd6">false</data>
   <data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00035/t00035.cc#L8</data>
   <data key="nd5">Center</data>
  </node>
  <node id="n3">
   <data key="nd1">class</data>
   <data key="nd2"><![CDATA[Bottom]]></data>
   <data key="nd6">false</data>
   <data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00035/t00035.cc#L10</data>
   <data key="nd5">Bottom</data>
  </node>
  <node id="n4">
   <data key="nd1">class</data>
   <data key="nd2"><![CDATA[Right]]></data>
   <data key="nd6">false</data>
   <data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00035/t00035.cc#L12</data>
   <data key="nd5">Right</data>
  </node>
 </graph>
</graphml>