25 #include <boost/msm/front/state_machine_def.hpp> 26 #include <boost/msm/back/state_machine.hpp> 67 template <
class Event,
class FSM>
68 void on_entry(Event
const& event, FSM& state_machine)
83 std::launch::async, std::bind(&PackmlState::runStateMethod<FSM>,
this, std::placeholders::_1), &state_machine);
86 template <
class Event,
class FSM>
87 void on_exit(Event
const& event, FSM& state_machine)
282 return "UnSuspending";
std::function< int()> state_method_
void handleStateChangeNotify(const std::string &state_name, StatesEnum state_id)
virtual std::string stateName()=0
void on_exit(Event const &event, FSM &state_machine)
static void LogInfo(const char *format,...)
std::atomic< bool > is_exiting_
void setStateMethod(std::function< int()> state_method)
virtual StatesEnum stateId()=0
std::atomic< bool > is_running_
void on_entry(Event const &event, FSM &state_machine)
void runStateMethod(FSM *state_machine_ptr)
std::future< void > state_method_future_
std::chrono::steady_clock::time_point start_time_