2
0
mirror of https://github.com/boostorg/msm.git synced 2026-02-03 09:22:12 +00:00

merged revisions 72032-72035

[SVN r72036]
This commit is contained in:
Christophe Henry
2011-05-18 21:53:09 +00:00
parent b58e42e1cb
commit 2a2724ae2b
52 changed files with 1791 additions and 358 deletions

View File

@@ -48,6 +48,17 @@ namespace
// front-end: define the FSM structure
struct player_ : public msm::front::state_machine_def<player_>
{
template <class Event,class FSM>
void on_entry(Event const& ,FSM&)
{
std::cout << "entering: Player" << std::endl;
}
template <class Event,class FSM>
void on_exit(Event const&,FSM& )
{
std::cout << "leaving: Player" << std::endl;
}
// The list of FSM states
struct Empty : public msm::front::state<>
{
@@ -203,6 +214,9 @@ namespace
// event leading to the same state
// no action method called as it is not present in the transition table
p.process_event(stop()); pstate(p);
std::cout << "stop fsm" << std::endl;
p.stop();
}
}