Namespaces | Macros | Enumerations | Functions
StateEnum.hpp File Reference
#include <cstdint>
#include <iostream>
#include <string>
Include dependency graph for StateEnum.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 rokubimini
 Tests Configuration.
 
 rokubimini::fsm
 

Macros

#define ROKUBIMINI_STATE_ID_CALIBRATE   (0)
 
#define ROKUBIMINI_STATE_ID_DEVICE_MISSING   (1)
 
#define ROKUBIMINI_STATE_ID_ERROR   (2)
 
#define ROKUBIMINI_STATE_ID_FATAL   (3)
 
#define ROKUBIMINI_STATE_ID_NA   (5)
 
#define ROKUBIMINI_STATE_ID_OPERATIONAL   (4)
 
#define ROKUBIMINI_STATE_ID_STANDBY   (6)
 
#define ROKUBIMINI_STATE_NAME_CALIBRATE   ("Calibrate")
 
#define ROKUBIMINI_STATE_NAME_DEVICE_MISSING   ("DeviceMissing")
 
#define ROKUBIMINI_STATE_NAME_ERROR   ("Error")
 
#define ROKUBIMINI_STATE_NAME_FATAL   ("Fatal")
 
#define ROKUBIMINI_STATE_NAME_NA   ("N/A")
 
#define ROKUBIMINI_STATE_NAME_OPERATIONAL   ("Operational")
 
#define ROKUBIMINI_STATE_NAME_STANDBY   ("Standby")
 

Enumerations

enum  rokubimini::fsm::StateEnum {
  rokubimini::fsm::StateEnum::CALIBRATE, rokubimini::fsm::StateEnum::DEVICE_MISSING, rokubimini::fsm::StateEnum::ERROR, rokubimini::fsm::StateEnum::FATAL,
  rokubimini::fsm::StateEnum::OPERATIONAL, rokubimini::fsm::StateEnum::NA, rokubimini::fsm::StateEnum::STANDBY
}
 

Functions

std::ostream & rokubimini::fsm::operator<< (std::ostream &out, const StateEnum stateEnum)
 Outputs the name of the state enumeration to an output stream. More...
 
uint16_t rokubimini::fsm::stateEnumToId (const StateEnum stateEnum)
 Gets an ID matching the state enumeration. More...
 
std::string rokubimini::fsm::stateEnumToName (const StateEnum stateEnum)
 Gets a name matching the state enumeration. More...
 
StateEnum rokubimini::fsm::stateIdToEnum (uint16_t stateId)
 Gets a state enumeration matching the state ID. More...
 
StateEnum rokubimini::fsm::stateNameToEnum (const std::string &string)
 Gets a state enumeration matching the state name. More...
 

Macro Definition Documentation

#define ROKUBIMINI_STATE_ID_CALIBRATE   (0)

Definition at line 15 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_DEVICE_MISSING   (1)

Definition at line 16 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_ERROR   (2)

Definition at line 17 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_FATAL   (3)

Definition at line 18 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_NA   (5)

Definition at line 20 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_OPERATIONAL   (4)

Definition at line 19 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_ID_STANDBY   (6)

Definition at line 21 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_CALIBRATE   ("Calibrate")

Definition at line 24 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_DEVICE_MISSING   ("DeviceMissing")

Definition at line 25 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_ERROR   ("Error")

Definition at line 26 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_FATAL   ("Fatal")

Definition at line 27 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_NA   ("N/A")

Definition at line 29 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_OPERATIONAL   ("Operational")

Definition at line 28 of file StateEnum.hpp.

#define ROKUBIMINI_STATE_NAME_STANDBY   ("Standby")

Definition at line 30 of file StateEnum.hpp.



rokubimini
Author(s):
autogenerated on Wed Mar 3 2021 03:09:12