|
MagAO-X
|
||||
|
Scoping struct for application state codes. More...
#include <stateCodes.hpp>

Public Types | |
| enum | : stateCodeT { FAILURE =-20, ERROR =-10, UNINITIALIZED = 0, INITIALIZED = 1, NODEVICE = 2, POWEROFF = 4, POWERON = 6, NOTCONNECTED = 8, CONNECTED = 10, LOGGEDIN = 15, CONFIGURING = 20, HOMING = 25, OPERATING = 30, READY = 35, SHUTDOWN = 10000 } |
| The numeric codes descrbing an application's state. More... | |
| typedef int16_t | stateCodeT |
| The type of the state code. More... | |
Static Public Member Functions | |
| static std::string | codeText (stateCodeT stateCode) |
| Get an ASCII string corresponding to an application stateCode. More... | |
Scoping struct for application state codes.
We do not use the enum class feature since it does not have automatic integer conversion.
Definition at line 22 of file stateCodes.hpp.
| typedef int16_t MagAOX::app::stateCodes::stateCodeT |
The type of the state code.
Definition at line 28 of file stateCodes.hpp.
|
static |
Get an ASCII string corresponding to an application stateCode.
| [in] | stateCode | the stateCode for which the name is desired |
Definition at line 62 of file stateCodes.hpp.
Referenced by MagAOX::logger::state_change::msgString().