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

Represents a call message in sequence diagram. More...

Detailed Description

Represents a call message in sequence diagram.

Definition at line 146 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 callee
 
- Public Attributes inherited from clanguml::decorators::decorator
std::vector< std::string > diagrams
 

Static Public Attributes

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

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

Definition at line 179 of file decorators.cc.

180{
181 auto res = std::make_shared<call>();
182 auto toks = res->tokenize(call::label, c);
183
184 res->diagrams = toks.diagrams;
185 res->callee = util::trim(toks.text);
186
187 return res;
188}

Member Data Documentation

◆ callee

std::string clanguml::decorators::call::callee

Definition at line 149 of file decorators.h.

◆ label

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

Definition at line 147 of file decorators.h.


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