diff --git a/include/cell.h b/include/cell.h index 7ac7677114eb35026d070ead4f7c0d1a535755bd..915a7b0009061f51ac38ddc21ceb97ec20ee06a6 100644 --- a/include/cell.h +++ b/include/cell.h @@ -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;