Skip to content
Snippets Groups Projects
Commit 5fbb2f2a authored by Johannes Mey's avatar Johannes Mey
Browse files

add string representation of state

parent a391c5a2
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,19 @@ struct Cell ...@@ -15,6 +15,19 @@ struct Cell
WORKING WORKING
}; };
std::string stateString() const {
switch (state) {
case DISCONNECTED:
return "DISCONNECTED";
case IDLE:
return "IDLE";
case WORKING:
return "WORKING";
default:
return "UNDEFINED";
}
}
std::string id; std::string id;
Scene scene; Scene scene;
State state = UNDEFINED; State state = UNDEFINED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment