25 return "UNINITIALIZED";
35 return "NOTCONNECTED";
60 if(stateStr ==
"FAILURE")
64 else if(stateStr ==
"ERROR")
68 else if(stateStr ==
"UNINITIALIZED")
72 else if(stateStr ==
"INITIALIZED" )
76 else if(stateStr ==
"NODEVICE" )
80 else if(stateStr ==
"POWEROFF")
84 else if(stateStr ==
"POWERON")
88 else if(stateStr ==
"NOTCONNECTED")
92 else if(stateStr ==
"CONNECTED")
96 else if(stateStr ==
"LOGGEDIN")
100 else if(stateStr ==
"CONFIGURING")
104 else if(stateStr ==
"NOTHOMED")
108 else if(stateStr ==
"HOMING")
112 else if(stateStr ==
"OPERATING")
116 else if(stateStr ==
"READY")
120 else if(stateStr ==
"SHUTDOWN")
136 if(stateStr.size() < 4)
141 if( stateStr[3] ==
'F')
145 else if( stateStr[3] ==
'N')
164 if(size(stateStr) < 4)
168 if(stateStr[2] ==
'D')
172 else if(stateStr[3] ==
'C')
176 else if(stateStr[3] ==
'H')
187 if(stateStr.size() < 7)
192 if(stateStr[6] ==
'F')
196 else if(stateStr[6] ==
'N')
@ OPERATING
The device is operating, other than homing.
@ POWEROFF
The device power is off.
@ NODEVICE
No device exists for the application to control.
@ SHUTDOWN
The application has shutdown, set just after calling appShutdown().
@ NOTHOMED
The device has not been homed.
@ HOMING
The device is homing.
@ FAILURE
The application has failed, should be used when m_shutdown is set for an error.
@ CONFIGURING
The application is configuring the device.
@ ERROR
The application has encountered an error, from which it is recovering (with or without intervention)
@ READY
The device is ready for operation, but is not operating.
@ LOGGEDIN
The application has logged into the device or service.
@ CONNECTED
The application has connected to the device or service.
@ UNINITIALIZED
The application is unitialized, the default.
@ INITIALIZED
The application has been initialized, set just before calling appStartup().
@ NOTCONNECTED
The application is not connected to the device or service.
@ POWERON
The device power is on.
MagAO-X Application States.
static stateCodeT str2CodeFast(const std::string &stateStr)
Get the stateCode corresponding to an ASCII string with minimal checks.
int16_t stateCodeT
The type of the state code.
static stateCodeT str2Code(const std::string &stateStr)
Get the stateCode corresponding to an ASCII string.
static std::string codeText(const stateCodeT &stateCode)
Get an ASCII string corresponding to an application stateCode.