Added option style to plantuml config section

This commit is contained in:
Bartek Kryza
2024-03-03 17:01:31 +01:00
parent c4ec8bef8a
commit 76fa811869
34 changed files with 363 additions and 128 deletions

View File

@@ -109,6 +109,11 @@ enum class comment_parser_t {
std::string to_string(comment_parser_t cp);
struct plantuml_keyword_mapping_t {
std::map<common::model::relationship_t, std::pair<std::string, std::string>>
relationships;
};
/**
* @brief PlantUML diagram config section
*
@@ -123,6 +128,13 @@ struct plantuml {
std::vector<std::string> after;
/*! Command template to render diagram using PlantUML */
std::string cmd;
/*! Provide customized styles for various elements */
std::map<std::string, std::string> style;
std::optional<std::string> get_style(
const common::model::relationship_t relationship_type) const;
std::optional<std::string> get_style(const std::string &element_type) const;
void append(const plantuml &r);
};