12 #ifndef SYNC_STATE_MACHINE_5352FE73_987B_4ECB_9320_685740A30EAA 13 #define SYNC_STATE_MACHINE_5352FE73_987B_4ECB_9320_685740A30EAA 51 virtual bool run() SX_OVERRIDE;
55 bool process_events_from_queue();
57 std::list<event_sptr> event_list_;
sync_state_machine(const std::string &_name, event_processing_callback *const _event_processing_callback=SX_NULLPTR)
Constructor.
Definition: sync_state_machine.cpp:21
sync_state_machine state_machine
Definition: sync_state_machine.hpp:62
Class for the "single-threaded version" of the state machine. It provides the methods to start the st...
Definition: sync_state_machine.hpp:27
virtual bool push(const event_sptr &_event) SX_OVERRIDE
Definition: sync_state_machine.cpp:34
virtual bool fire_event(const event_sptr &_event) SX_OVERRIDE
Fire the given event.
Definition: sync_state_machine.cpp:41
Definition: adapter_cpp11.hpp:21
Callback interface that is called by a state machine during event processing. See the different metho...
Definition: event_processing_callback.hpp:37
sxe::shared_ptr< event > event_sptr
Definition: event_fwd.hpp:25
virtual ~sync_state_machine() SX_NOEXCEPT SX_OVERRIDE
Definition: sync_state_machine.cpp:28
virtual bool run() SX_OVERRIDE
Starts the state machine.
Definition: sync_state_machine.cpp:63
Definition: state_machine_base.hpp:45