Skip to content

Commit dd7c535

Browse files
committed
[occ] Document OccState
1 parent dee8472 commit dd7c535

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

occ/occlib/OccState.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,19 @@
3030
#include <string>
3131
#include <unordered_map>
3232

33-
typedef enum {undefined,standby,configured,running,paused,error,done} t_State;
33+
34+
/**
35+
* States for the state machine used by RuntimeControlledObject.
36+
*/
37+
typedef enum {
38+
undefined, /// Undefined state, this should never happen.
39+
standby, /// Initial state for started or unconfigured processes.
40+
configured, /// Process configured and ready to perform data processing.
41+
running, /// Data processing running, iterateRunning is continuously called in this state.
42+
paused, /// Data processing temporarily on hold.
43+
error, /// Generic error state, the machine is forced there when a transition or check fails.
44+
done /// Final state of the process, it is not possible to go back from here, only quit.
45+
} t_State;
3446

3547
typedef std::unordered_map<std::string, std::string> PropertyMap;
3648

0 commit comments

Comments
 (0)