167 lines
3.6 KiB
Markdown
167 lines
3.6 KiB
Markdown
# t00035 - PlantUML class diagram layout hints test case
|
|
## Config
|
|
```yaml
|
|
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`
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00035 {
|
|
|
|
struct Top { };
|
|
|
|
struct Left { };
|
|
|
|
struct Center { };
|
|
|
|
struct Bottom { };
|
|
|
|
struct Right { };
|
|
|
|
} // namespace t00035
|
|
} // namespace clanguml
|
|
|
|
```
|
|
## Generated PlantUML diagrams
|
|

|
|
## Generated Mermaid diagrams
|
|

|
|
## Generated JSON models
|
|
```json
|
|
{
|
|
"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"
|
|
}
|
|
```
|