Select Git revision
cell.h 761 B
#ifndef CCF_IMMERSIVE_SORTING_CELL_H_
#define CCF_IMMERSIVE_SORTING_CELL_H_
#include <connector.pb.h>
#include <optional>
#include <string>
struct Cell
{
enum State
{
UNDEFINED,
DISCONNECTED,
IDLE,
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;
std::optional<std::string> processed_object;
Cell() = default;
// one does not copy cells
Cell(const Cell&) = delete;
Cell& operator=(const Cell&) = delete;
};
#endif // CCF_IMMERSIVE_SORTING_CELL_H_