Refactored stylable_element

This commit is contained in:
Bartek Kryza
2021-09-26 23:50:27 +02:00
parent 80ee88aa4b
commit d6b88e68ec
4 changed files with 23 additions and 11 deletions

View File

@@ -130,8 +130,8 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
ostr << class_type << " " << c.alias();
if (!c.style.empty())
ostr << " " << c.style;
if (!c.style().empty())
ostr << " " << c.style();
ostr << " {" << '\n';
@@ -203,7 +203,7 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
if (!r.multiplicity_source.empty())
puml_relation += "\"" + r.multiplicity_source + "\" ";
puml_relation += to_string(r.type, r.style);
puml_relation += to_string(r.type, r.style());
if (!r.multiplicity_destination.empty())
puml_relation += " \"" + r.multiplicity_destination + "\"";
@@ -290,8 +290,8 @@ void generator::generate(const enum_ &e, std::ostream &ostr) const
{
ostr << "enum " << e.alias();
if (!e.style.empty())
ostr << " " << e.style;
if (!e.style().empty())
ostr << " " << e.style();
ostr << " {" << '\n';