Refactored sequence diagram generator

This commit is contained in:
Bartek Kryza
2022-02-16 19:55:12 +01:00
parent fb00743702
commit 4eab1e62b5
11 changed files with 57 additions and 69 deletions
+12
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);
}
}
}
+5
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);
}