Initial working sequence diagram
This commit is contained in:
@@ -20,16 +20,28 @@ struct message {
|
||||
std::string from;
|
||||
std::string from_usr;
|
||||
std::string to;
|
||||
std::string to_usr;
|
||||
std::string message;
|
||||
std::string return_type;
|
||||
unsigned int line;
|
||||
};
|
||||
|
||||
struct activity {
|
||||
std::string usr;
|
||||
std::string from;
|
||||
std::vector<message> messages;
|
||||
};
|
||||
|
||||
struct diagram {
|
||||
bool started{false};
|
||||
std::string name;
|
||||
std::vector<message> sequence;
|
||||
|
||||
//std::map<std::string, activity> sequences;
|
||||
std::map<std::string, activity> sequences;
|
||||
|
||||
void sort()
|
||||
{
|
||||
/*
|
||||
std::sort(sequence.begin(), sequence.end(),
|
||||
[](const auto &a, const auto &b) -> bool {
|
||||
if (a.from_usr == b.from_usr)
|
||||
@@ -37,6 +49,7 @@ struct diagram {
|
||||
|
||||
return a.from_usr > b.from_usr;
|
||||
});
|
||||
*/
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user