Initial refactoring of sequence diagram visitor to include participants

This commit is contained in:
Bartek Kryza
2022-10-23 22:36:53 +02:00
parent a2705b10d9
commit 1fe9918c1a
13 changed files with 1089 additions and 116 deletions

View File

@@ -58,6 +58,20 @@ inja::json diagram::context() const
return ctx;
}
void diagram::print() const
{
for (const auto &[from_id, act] : sequences) {
LOG_DBG("Sequence id={}:", from_id);
LOG_DBG(" Activity id={}, from={}:", act.usr, act.from);
for (const auto &message : act.messages) {
LOG_DBG(
" Message from={}, from_id={}, to={}, to_id={}, name={}",
message.from_name, message.from, message.to_name, message.to,
message.message_name);
}
}
}
}
namespace clanguml::common::model {