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
Branches
Tags
No related merge requests found
......@@ -15,6 +15,19 @@ struct Cell
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;
Scene scene;
State state = UNDEFINED;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment