Optimized class diagram generator alias resolution
This commit is contained in:
@@ -190,8 +190,7 @@ void generator::generate(
|
|||||||
if (!r.multiplicity_destination().empty())
|
if (!r.multiplicity_destination().empty())
|
||||||
puml_relation += " \"" + r.multiplicity_destination() + "\"";
|
puml_relation += " \"" + r.multiplicity_destination() + "\"";
|
||||||
|
|
||||||
relstr << m_model.to_alias(uns.relative(c.full_name())) << " "
|
relstr << c.alias() << " " << puml_relation << " "
|
||||||
<< puml_relation << " "
|
|
||||||
<< m_model.to_alias(uns.relative(destination));
|
<< m_model.to_alias(uns.relative(destination));
|
||||||
|
|
||||||
if (!r.label().empty()) {
|
if (!r.label().empty()) {
|
||||||
@@ -249,7 +248,7 @@ void generator::generate(
|
|||||||
std::stringstream relstr;
|
std::stringstream relstr;
|
||||||
try {
|
try {
|
||||||
relstr << m_model.to_alias(uns.relative(b.name())) << " <|-- "
|
relstr << m_model.to_alias(uns.relative(b.name())) << " <|-- "
|
||||||
<< m_model.to_alias(uns.relative(c.full_name())) << '\n';
|
<< c.alias() << '\n';
|
||||||
all_relations_str << relstr.str();
|
all_relations_str << relstr.str();
|
||||||
}
|
}
|
||||||
catch (error::uml_alias_missing &e) {
|
catch (error::uml_alias_missing &e) {
|
||||||
@@ -295,9 +294,7 @@ void generator::generate(
|
|||||||
try {
|
try {
|
||||||
destination = r.destination();
|
destination = r.destination();
|
||||||
|
|
||||||
relstr << m_model.to_alias(
|
relstr << e.alias() << " "
|
||||||
m_config.using_namespace().relative(e.name()))
|
|
||||||
<< " "
|
|
||||||
<< clanguml::common::generators::plantuml::to_plantuml(
|
<< clanguml::common::generators::plantuml::to_plantuml(
|
||||||
r.type(), r.style())
|
r.type(), r.style())
|
||||||
<< " "
|
<< " "
|
||||||
|
|||||||
Reference in New Issue
Block a user