# t00030 - PlantUML relationship decorators test case
## Config
```yaml
compilation_database_dir: ..
output_directory: puml
diagrams:
  t00030_class:
    type: class
    glob:
      - ../../tests/t00030/t00030.cc
    using_namespace:
      - clanguml::t00030
    include:
      namespaces:
        - clanguml::t00030

```
## Source code
File t00030.cc
```cpp
#include <memory>
#include <vector>

namespace clanguml {
namespace t00030 {

class A { };

class B { };

class C { };

class D { };

class E { };

struct R {
    /// @uml{association[]}
    A aaa;

    /// @uml{composition[0..1:1..*]}
    std::vector<B> bbb;

    /// @uml{aggregation[0..1:1..5]}
    std::vector<C> ccc;

    /// @uml{association[:1]}
    D ddd;

    /// @uml{aggregation[:1]}
    E *eee;
};

} // namespace t00030
} // namespace clanguml

```
## Generated UML diagrams
![t00030_class](./t00030_class.svg "PlantUML relationship decorators test case")
## Generated JSON models
```json
{
  "diagram_type": "class",
  "elements": [
    {
      "bases": [],
      "display_name": "clanguml::t00030::A",
      "id": "64769484767514424",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": false,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "A",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 7
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "clanguml::t00030::B",
      "id": "156923198106222307",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": false,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "B",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 9
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "clanguml::t00030::C",
      "id": "1651557398557662399",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": false,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "C",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 11
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "clanguml::t00030::D",
      "id": "1089781072752262158",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": false,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "D",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 13
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "clanguml::t00030::E",
      "id": "425964641881054607",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": false,
      "is_template": false,
      "is_union": false,
      "members": [],
      "methods": [],
      "name": "E",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 15
      },
      "template_parameters": [],
      "type": "class"
    },
    {
      "bases": [],
      "display_name": "clanguml::t00030::R",
      "id": "263468735940481091",
      "is_abstract": false,
      "is_nested": false,
      "is_struct": true,
      "is_template": false,
      "is_union": false,
      "members": [
        {
          "access": "public",
          "comment": {
            "formatted": "@uml{association[]}",
            "raw": "/// @uml{association[]}"
          },
          "is_static": false,
          "name": "aaa",
          "source_location": {
            "file": "../../tests/t00030/t00030.cc",
            "line": 19
          },
          "type": "clanguml::t00030::A"
        },
        {
          "access": "public",
          "comment": {
            "formatted": "@uml{composition[0..1:1..*]}",
            "raw": "/// @uml{composition[0..1:1..*]}"
          },
          "is_static": false,
          "name": "bbb",
          "source_location": {
            "file": "../../tests/t00030/t00030.cc",
            "line": 22
          },
          "type": "std::vector<B>"
        },
        {
          "access": "public",
          "comment": {
            "formatted": "@uml{aggregation[0..1:1..5]}",
            "raw": "/// @uml{aggregation[0..1:1..5]}"
          },
          "is_static": false,
          "name": "ccc",
          "source_location": {
            "file": "../../tests/t00030/t00030.cc",
            "line": 25
          },
          "type": "std::vector<C>"
        },
        {
          "access": "public",
          "comment": {
            "formatted": "@uml{association[:1]}",
            "raw": "/// @uml{association[:1]}"
          },
          "is_static": false,
          "name": "ddd",
          "source_location": {
            "file": "../../tests/t00030/t00030.cc",
            "line": 28
          },
          "type": "clanguml::t00030::D"
        },
        {
          "access": "public",
          "comment": {
            "formatted": "@uml{aggregation[:1]}",
            "raw": "/// @uml{aggregation[:1]}"
          },
          "is_static": false,
          "name": "eee",
          "source_location": {
            "file": "../../tests/t00030/t00030.cc",
            "line": 31
          },
          "type": "clanguml::t00030::E *"
        }
      ],
      "methods": [],
      "name": "R",
      "namespace": "clanguml::t00030",
      "source_location": {
        "file": "../../tests/t00030/t00030.cc",
        "line": 17
      },
      "template_parameters": [],
      "type": "class"
    }
  ],
  "metadata": {
    "clang_uml_version": "0.3.5-27-g81c7ce7",
    "llvm_version": "Ubuntu clang version 15.0.6",
    "schema_version": 1
  },
  "name": "t00030_class",
  "relationships": [
    {
      "access": "public",
      "destination": "64769484767514424",
      "label": "aaa",
      "source": "263468735940481091",
      "type": "association"
    },
    {
      "access": "public",
      "destination": "156923198106222307",
      "label": "bbb",
      "multiplicity_destination": "1..*",
      "multiplicity_source": "0..1",
      "source": "263468735940481091",
      "type": "composition"
    },
    {
      "access": "public",
      "destination": "1651557398557662399",
      "label": "ccc",
      "multiplicity_destination": "1..5",
      "multiplicity_source": "0..1",
      "source": "263468735940481091",
      "type": "aggregation"
    },
    {
      "access": "public",
      "destination": "1089781072752262158",
      "label": "ddd",
      "multiplicity_destination": "1",
      "source": "263468735940481091",
      "type": "association"
    },
    {
      "access": "public",
      "destination": "425964641881054607",
      "label": "eee",
      "multiplicity_destination": "1",
      "source": "263468735940481091",
      "type": "aggregation"
    }
  ],
  "using_namespace": "clanguml::t00030"
}
```
