Refactored sequence diagram generator

This commit is contained in:
Bartek Kryza
2022-02-16 19:54:49 +01:00
parent fb00743702
commit 4eab1e62b5
11 changed files with 57 additions and 69 deletions

View File

@@ -78,4 +78,16 @@ std::string to_string(access_t a)
assert(false);
}
}
std::string to_string(message_t r)
{
switch (r) {
case message_t::kCall:
return "call";
case message_t::kReturn:
return "return";
default:
assert(false);
}
}
}

View File

@@ -38,9 +38,14 @@ enum class relationship_t {
kDependency
};
enum class message_t { kCall, kReturn };
std::string to_string(relationship_t r);
std::string to_string(scope_t r);
std::string to_string(access_t r);
std::string to_string(message_t r);
}