0.5.4
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
clanguml::config::plantuml Struct Reference

PlantUML diagram config section. More...

Detailed Description

PlantUML diagram config section.

This configuration option can be used to add any PlantUML directives before or after the generated diagram, such as diagram name, or custom notes.

Definition at line 133 of file config.h.

#include <config.h>

Public Member Functions

std::optional< std::string > get_style (common::model::relationship_t relationship_type) const
 
std::optional< std::string > get_style (const std::string &element_type) const
 
void append (const plantuml &r)
 

Public Attributes

std::vector< std::string > before
 
std::vector< std::string > after
 
std::string cmd
 
std::map< std::string, std::string > style
 

Member Function Documentation

◆ append()

void clanguml::config::plantuml::append ( const plantuml r)

Definition at line 220 of file config.cc.

221{
222 before.insert(before.end(), r.before.begin(), r.before.end());
223 after.insert(after.end(), r.after.begin(), r.after.end());
224 if (cmd.empty())
225 cmd = r.cmd;
226}

◆ get_style() [1/2]

std::optional< std::string > clanguml::config::plantuml::get_style ( common::model::relationship_t  relationship_type) const

Definition at line 202 of file config.cc.

204{
205 if (style.count(to_string(relationship_type)) == 0)
206 return {};
207
208 return style.at(to_string(relationship_type));
209}

◆ get_style() [2/2]

std::optional< std::string > clanguml::config::plantuml::get_style ( const std::string &  element_type) const

Definition at line 211 of file config.cc.

213{
214 if (style.count(element_type) == 0)
215 return {};
216
217 return style.at(element_type);
218}

Member Data Documentation

◆ after

std::vector<std::string> clanguml::config::plantuml::after

List of directives to add before diagram

Definition at line 137 of file config.h.

◆ before

std::vector<std::string> clanguml::config::plantuml::before

List of directives to add before diagram

Definition at line 135 of file config.h.

◆ cmd

std::string clanguml::config::plantuml::cmd

Command template to render diagram using PlantUML

Definition at line 139 of file config.h.

◆ style

std::map<std::string, std::string> clanguml::config::plantuml::style

Provide customized styles for various elements

Definition at line 141 of file config.h.


The documentation for this struct was generated from the following files: