Refactored sequence diagram generator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user