68 lines
1.4 KiB
Markdown
68 lines
1.4 KiB
Markdown
# t00063 - Element types diagram filter test case
|
|
## Config
|
|
```yaml
|
|
diagrams:
|
|
t00063_class:
|
|
type: class
|
|
glob:
|
|
- t00063.cc
|
|
include:
|
|
namespaces:
|
|
- clanguml::t00063
|
|
exclude:
|
|
element_types:
|
|
- enum
|
|
using_namespace: clanguml::t00063
|
|
```
|
|
## Source code
|
|
File `tests/t00063/t00063.cc`
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00063 {
|
|
class A { };
|
|
|
|
enum B { b1, b2, b3 };
|
|
|
|
enum class C { c1, c2, c3 };
|
|
}
|
|
}
|
|
```
|
|
## Generated PlantUML diagrams
|
|

|
|
## Generated Mermaid diagrams
|
|

|
|
## Generated JSON models
|
|
```json
|
|
{
|
|
"diagram_type": "class",
|
|
"elements": [
|
|
{
|
|
"bases": [],
|
|
"display_name": "A",
|
|
"id": "12145374198390396463",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": false,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "A",
|
|
"namespace": "clanguml::t00063",
|
|
"source_location": {
|
|
"column": 7,
|
|
"file": "t00063.cc",
|
|
"line": 3,
|
|
"translation_unit": "t00063.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
}
|
|
],
|
|
"name": "t00063_class",
|
|
"package_type": "namespace",
|
|
"relationships": [],
|
|
"using_namespace": "clanguml::t00063"
|
|
}
|
|
```
|