Added option --print-start-from to list all possible 'start_from' values (fixes #94)

This commit is contained in:
Bartek Kryza
2023-07-05 21:56:01 +02:00
parent e6202d4e5a
commit 51e31b4bf7
8 changed files with 119 additions and 42 deletions

View File

@@ -181,6 +181,22 @@ bool diagram::should_include(
dynamic_cast<const common::model::source_location &>(p));
}
std::vector<std::string> diagram::list_start_from_values() const
{
std::vector<std::string> result;
for (const auto &[from_id, act] : sequences_) {
const auto &from_activity = *(participants_.at(from_id));
result.push_back(from_activity.full_name(false));
}
std::sort(result.begin(), result.end());
return result;
}
void diagram::print() const
{
LOG_TRACE(" --- Participants ---");