15 #define ROKUBIMINI_STATE_ID_CALIBRATE (0) 16 #define ROKUBIMINI_STATE_ID_DEVICE_MISSING (1) 17 #define ROKUBIMINI_STATE_ID_ERROR (2) 18 #define ROKUBIMINI_STATE_ID_FATAL (3) 19 #define ROKUBIMINI_STATE_ID_OPERATIONAL (4) 20 #define ROKUBIMINI_STATE_ID_NA (5) 21 #define ROKUBIMINI_STATE_ID_STANDBY (6) 24 #define ROKUBIMINI_STATE_NAME_CALIBRATE ("Calibrate") 25 #define ROKUBIMINI_STATE_NAME_DEVICE_MISSING ("DeviceMissing") 26 #define ROKUBIMINI_STATE_NAME_ERROR ("Error") 27 #define ROKUBIMINI_STATE_NAME_FATAL ("Fatal") 28 #define ROKUBIMINI_STATE_NAME_OPERATIONAL ("Operational") 29 #define ROKUBIMINI_STATE_NAME_NA ("N/A") 30 #define ROKUBIMINI_STATE_NAME_STANDBY ("Standby")
StateEnum stateNameToEnum(const std::string &string)
Gets a state enumeration matching the state name.
uint16_t stateEnumToId(const StateEnum stateEnum)
Gets an ID matching the state enumeration.
StateEnum stateIdToEnum(uint16_t stateId)
Gets a state enumeration matching the state ID.
std::ostream & operator<<(std::ostream &out, const StateEnum stateEnum)
Outputs the name of the state enumeration to an output stream.
std::string stateEnumToName(const StateEnum stateEnum)
Gets a name matching the state enumeration.