Refactored common diagram elements to clanguml::common:model namespace

This commit is contained in:
Bartek Kryza
2022-01-16 20:57:39 +01:00
parent d62a2a1e9f
commit 6d11376039
26 changed files with 111 additions and 113 deletions

View File

@@ -90,7 +90,7 @@ bool diagram::should_include(const std::string &name_) const
}
bool diagram::should_include(
const clanguml::class_diagram::model::scope_t scope) const
const clanguml::common::model::scope_t scope) const
{
for (const auto &s : exclude.scopes) {
if (s == scope)
@@ -128,7 +128,7 @@ bool class_diagram::has_class(std::string clazz)
}
namespace YAML {
using clanguml::class_diagram::model::scope_t;
using clanguml::common::model::scope_t;
using clanguml::config::class_diagram;
using clanguml::config::config;
using clanguml::config::filter;

View File

@@ -18,7 +18,7 @@
#pragma once
#include "class_diagram/model/diagram.h"
#include "class_diagram/model/enums.h"
#include "common/model/enums.h"
#include "util/util.h"
#include <spdlog/spdlog.h>
@@ -56,7 +56,7 @@ struct filter {
// E.g.:
// - public
// - private
std::vector<class_diagram::model::scope_t> scopes;
std::vector<common::model::scope_t> scopes;
};
struct diagram {
@@ -77,7 +77,7 @@ struct diagram {
bool should_include(const std::string &name_) const;
bool should_include(const class_diagram::model::scope_t scope) const;
bool should_include(const common::model::scope_t scope) const;
};
struct source_location {