0.6.0
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 183 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 257 of file config.cc.

258{
259 before.insert(before.end(), r.before.begin(), r.before.end());
260 after.insert(after.end(), r.after.begin(), r.after.end());
261 if (cmd.empty())
262 cmd = r.cmd;
263}

◆ get_style() [1/2]

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

Definition at line 239 of file config.cc.

241{
242 if (style.count(to_string(relationship_type)) == 0)
243 return {};
244
245 return style.at(to_string(relationship_type));
246}

◆ get_style() [2/2]

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

Definition at line 248 of file config.cc.

250{
251 if (style.count(element_type) == 0)
252 return {};
253
254 return style.at(element_type);
255}

Member Data Documentation

◆ after

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

List of directives to add before diagram

Definition at line 187 of file config.h.

◆ before

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

List of directives to add before diagram

Definition at line 185 of file config.h.

◆ cmd

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

Command template to render diagram using PlantUML

Definition at line 189 of file config.h.

◆ style

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

Provide customized styles for various elements

Definition at line 191 of file config.h.


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