Added diagram templates to config

This commit is contained in:
Bartek Kryza
2023-03-07 23:03:02 +01:00
parent 0dc7445909
commit 2092a0e3e6
6 changed files with 151 additions and 1 deletions

View File

@@ -50,6 +50,11 @@ struct plantuml {
void append(const plantuml &r);
};
struct diagram_template {
common::model::diagram_t type;
std::string jinja_template;
};
struct filter {
std::vector<common::model::namespace_> namespaces;
@@ -218,6 +223,9 @@ struct config : public inheritable_diagram_options {
"compilation_database_dir", "."};
option<std::string> output_directory{"output_directory"};
option<std::map<std::string, diagram_template>> diagram_templates{
"diagram_templates"};
std::map<std::string, std::shared_ptr<diagram>> diagrams;
};