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::note Struct Reference

Represents a note diagram element. More...

Detailed Description

Represents a note diagram element.

Definition at line 72 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 position {"left"}
 
std::string text
 
- Public Attributes inherited from clanguml::decorators::decorator
std::vector< std::string > diagrams
 

Static Public Attributes

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

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::note::from_string ( std::string_view  c)
static

Definition at line 109 of file decorators.cc.

110{
111 auto res = std::make_shared<note>();
112 auto toks = res->tokenize(note::label, c);
113
114 res->diagrams = toks.diagrams;
115
116 if (!toks.param.empty())
117 res->position = toks.param;
118
119 res->text = toks.text;
120
121 return res;
122}

Member Data Documentation

◆ label

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

Definition at line 73 of file decorators.h.

◆ position

std::string clanguml::decorators::note::position {"left"}

Definition at line 75 of file decorators.h.

◆ text

std::string clanguml::decorators::note::text

Definition at line 76 of file decorators.h.


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