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

Apply specific style to a decorated diagram element. More...

Detailed Description

Apply specific style to a decorated diagram element.

Definition at line 102 of file decorators.h.

#include <decorators.h>

Static Public Member Functions

static std::shared_ptr< decoratorfrom_string (std::string_view c)
 
- Static Public Member Functions inherited from clanguml::decorators::decorator
static std::shared_ptr< decoratorfrom_string (std::string_view c)
 Create decorator of specific type based on it's string representation.
 

Public Attributes

std::string spec
 
- Public Attributes inherited from clanguml::decorators::decorator
std::vector< std::string > diagrams
 

Static Public Attributes

static const std::string label {"style"}
 

Additional Inherited Members

- Public Member Functions inherited from clanguml::decorators::decorator
virtual ~decorator ()=default
 
bool applies_to_diagram (const std::string &name)
 Check if decorator applies to a specific diagram.
 
- Protected Member Functions inherited from clanguml::decorators::decorator
decorator_toks tokenize (const std::string &label, std::string_view c)
 

Member Function Documentation

◆ from_string()

std::shared_ptr< decorator > clanguml::decorators::style::from_string ( std::string_view  c)
static

Definition at line 135 of file decorators.cc.

136{
137 auto res = std::make_shared<style>();
138 auto toks = res->tokenize(style::label, c);
139
140 res->diagrams = toks.diagrams;
141 res->spec = toks.param;
142
143 return res;
144}

Member Data Documentation

◆ label

const std::string clanguml::decorators::style::label {"style"}
inlinestatic

Definition at line 103 of file decorators.h.

◆ spec

std::string clanguml::decorators::style::spec

Definition at line 105 of file decorators.h.


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