31#include <glob/glob.hpp>
32#include <nlohmann/json.hpp>
40namespace class_diagram {
46template <
typename C,
typename D>
144 template <
typename T>
154 for (
const auto &r : c.relationships()) {
155 auto target_element =
model.get(r.destination());
156 if (!target_element.has_value()) {
157 LOG_DBG(
"Skipping {} relation from '{}' to '{}' due "
158 "to unresolved destination id",
159 to_string(r.type()), c.full_name(
true),
160 r.destination().value());
164 nlohmann::json rel = r;
165 rel[
"source"] = std::to_string(c.id().value());
166 parent[
"relationships"].push_back(rel);
171void generator::generate_relationships<package>(
172 const package &p, nlohmann::json &parent)
const;