25 return "UNINITIALIZED";
35 return "NOTCONNECTED";
62 if(stateStr ==
"FAILURE")
66 else if(stateStr ==
"ERROR")
70 else if(stateStr ==
"UNINITIALIZED")
74 else if(stateStr ==
"INITIALIZED" )
78 else if(stateStr ==
"NODEVICE" )
82 else if(stateStr ==
"POWEROFF")
86 else if(stateStr ==
"POWERON")
90 else if(stateStr ==
"NOTCONNECTED")
94 else if(stateStr ==
"CONNECTED")
98 else if(stateStr ==
"LOGGEDIN")
102 else if(stateStr ==
"CONFIGURING")
106 else if(stateStr ==
"NOTHOMED")
110 else if(stateStr ==
"HOMING")
114 else if(stateStr ==
"OPERATING")
118 else if(stateStr ==
"READY")
122 else if(stateStr ==
"SHUTDOWN")
138 if(stateStr.size() < 4)
143 if( stateStr[3] ==
'F')
147 else if( stateStr[3] ==
'N')
166 if(size(stateStr) < 4)
170 if(stateStr[2] ==
'D')
174 else if(stateStr[3] ==
'C')
178 else if(stateStr[3] ==
'H')
189 if(stateStr.size() < 7)
194 if(stateStr[6] ==
'F')
198 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.