69 lines
1.3 KiB
Markdown
69 lines
1.3 KiB
Markdown
# t00054 - Test case for `together` layout hint in class diagram with rendered namespaces
|
|
## Config
|
|
```yaml
|
|
compilation_database_dir: ..
|
|
output_directory: puml
|
|
diagrams:
|
|
t00054_class:
|
|
type: class
|
|
glob:
|
|
- ../../tests/t00054/t00054.cc
|
|
include:
|
|
namespaces:
|
|
- clanguml::t00054
|
|
using_namespace:
|
|
- clanguml::t00054
|
|
generate_packages: true
|
|
layout:
|
|
a:
|
|
- together: [f]
|
|
"detail::c":
|
|
- together: [detail::e]
|
|
A:
|
|
- together: [B,G]
|
|
"detail2::detail3::D":
|
|
- together: [detail2::detail3::E]
|
|
"detail4::h":
|
|
- together: [detail4::i,detail4::j]
|
|
```
|
|
## Source code
|
|
File t00054.cc
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00054 {
|
|
struct a { };
|
|
struct b { };
|
|
|
|
namespace detail {
|
|
struct c { };
|
|
struct d { };
|
|
struct e { };
|
|
} // namespace detail
|
|
struct f { };
|
|
struct g { };
|
|
|
|
struct A { };
|
|
struct B { };
|
|
|
|
namespace detail2 {
|
|
struct C { };
|
|
namespace detail3 {
|
|
struct D { };
|
|
struct E { };
|
|
} // namespace detail3
|
|
struct F { };
|
|
} // namespace detail2
|
|
struct G { };
|
|
|
|
namespace detail4 {
|
|
enum class h { hhh };
|
|
enum class i { iii };
|
|
enum class j { jjj };
|
|
} // namespace detail4
|
|
|
|
}
|
|
}
|
|
```
|
|
## Generated UML diagrams
|
|

|