Added decorator diagram scope

This commit is contained in:
Bartek Kryza
2021-07-30 00:39:43 +02:00
parent b5733b2605
commit 7b9fe2ee2d
8 changed files with 191 additions and 45 deletions

View File

@@ -24,10 +24,25 @@
namespace clanguml {
namespace decorators {
// \clanguml{label:diagram1,diagram2[param] text}
struct decorator_toks {
std::string label;
std::vector<std::string> diagrams;
std::string param;
std::string text;
};
struct decorator {
std::vector<std::string> diagrams;
virtual ~decorator() = default;
static std::shared_ptr<decorator> from_string(std::string_view c);
bool applies_to_diagram(std::string name);
protected:
decorator_toks tokenize(const std::string &label, std::string_view c);
};
struct note : public decorator {