Added relationship decorators

This commit is contained in:
Bartek Kryza
2021-07-31 19:15:55 +02:00
parent 3f8100a050
commit 841f97eeb5
13 changed files with 366 additions and 13 deletions

View File

@@ -72,10 +72,25 @@ struct style : public decorator {
static std::shared_ptr<decorator> from_string(std::string_view c);
};
struct aggregation : public decorator {
struct relationship : public decorator {
std::string multiplicity;
};
struct aggregation : public relationship {
static const std::string label;
static std::shared_ptr<decorator> from_string(std::string_view c);
};
struct composition : public relationship {
static const std::string label;
static std::shared_ptr<decorator> from_string(std::string_view c);
};
struct association : public relationship {
static const std::string label;
std::string multiplicity;
static std::shared_ptr<decorator> from_string(std::string_view c);
};