Common diagram configuration type. More...
Common diagram configuration type.
This class provides common interface for diagram configuration sections of different diagram types.
#include <config.h>
Public Member Functions | |
~diagram () override=default | |
virtual common::model::diagram_t | type () const =0 |
std::vector< std::string > | glob_translation_units (const std::vector< std::string > &compilation_database_files) const |
Filter translation units based on glob patterns. | |
std::filesystem::path | make_path_relative (const std::filesystem::path &p) const |
Make path relative to the relative_to config option. | |
std::vector< std::string > | make_module_relative (const std::optional< std::string > &maybe_module) const |
Make module path relative to using_module configuration option. | |
std::optional< std::string > | get_together_group (const std::string &full_name) const |
void | initialize_type_aliases () |
Initialize predefined set of C++ type aliases. | |
Public Member Functions inherited from clanguml::config::inheritable_diagram_options | |
virtual | ~inheritable_diagram_options ()=default |
void | inherit (const inheritable_diagram_options &parent) |
std::string | simplify_template_type (std::string full_name) const |
bool | generate_fully_qualified_name () const |
Whether the diagram element should be fully qualified in diagram. | |
std::filesystem::path | root_directory () const |
Returns absolute path of the relative_to option. | |
option< std::filesystem::path > & | get_relative_to () |
Get reference to relative_to diagram config option. | |
Additional Inherited Members | |
Protected Attributes inherited from clanguml::config::inheritable_diagram_options | |
option< std::filesystem::path > | relative_to {"relative_to"} |
|
overridedefault |
std::optional< std::string > clanguml::config::diagram::get_together_group | ( | const std::string & | full_name | ) | const |
Definition at line 509 of file config.cc.
std::vector< std::string > clanguml::config::diagram::glob_translation_units | ( | const std::vector< std::string > & | compilation_database_files | ) | const |
Filter translation units based on glob patterns.
Definition at line 355 of file config.cc.
void clanguml::config::diagram::initialize_type_aliases | ( | ) |
Initialize predefined set of C++ type aliases.
This method is responsible for setting up a predefined set of C++ aliases to make the diagrams look nicer, for instance we want to have std::string
instead of std::basic_string<char>
.
Definition at line 534 of file config.cc.
std::vector< std::string > clanguml::config::diagram::make_module_relative | ( | const std::optional< std::string > & | maybe_module | ) | const |
Make module path relative to using_module
configuration option.
p | Input path |
Definition at line 486 of file config.cc.
std::filesystem::path clanguml::config::diagram::make_path_relative | ( | const std::filesystem::path & | p | ) | const |
Make path relative to the relative_to
config option.
p | Input path |
|
pure virtual |
option<std::string> clanguml::config::diagram::title {"title"} |