66 opt_ref<diagram_element>
get(
const std::string &full_name)
const override;
74 opt_ref<diagram_element>
get(
eid_t id)
const override;
81 void add_file(std::unique_ptr<common::model::source_file> &&f);
93 template <
typename ElementT>
94 opt_ref<ElementT>
find(
const std::string &
name)
const;
106 template <
typename ElementT> opt_ref<ElementT>
find(
eid_t id)
const;
125 inja::json
context()
const override;
137template <
typename ElementT>
141 std::filesystem::path namePath{
name};
142 namePath.make_preferred();
144 for (
const auto &element : element_view<ElementT>::view()) {
145 const auto full_name = element.get().full_name(
false);
147 if (full_name == namePath.string()) {
157 for (
const auto &element : element_view<ElementT>::view()) {
158 if (element.get().id() == id) {
170bool check_diagram_type<clanguml::include_diagram::model::diagram>(
diagram_t t);