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

Make a member an association relationship. More...

Detailed Description

Make a member an association relationship.

Definition at line 137 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.
 

Static Public Attributes

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

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.
 
- Public Attributes inherited from clanguml::decorators::relationship
std::string multiplicity
 
- Public Attributes inherited from clanguml::decorators::decorator
std::vector< std::string > diagrams
 
- 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::association::from_string ( std::string_view  c)
static

Definition at line 168 of file decorators.cc.

169{
170 auto res = std::make_shared<association>();
171 auto toks = res->tokenize(association::label, c);
172
173 res->diagrams = toks.diagrams;
174 res->multiplicity = toks.param;
175
176 return res;
177}

Member Data Documentation

◆ label

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

Definition at line 138 of file decorators.h.


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