2
0
mirror of https://github.com/boostorg/msm.git synced 2026-01-26 06:42:20 +00:00

new version for 1.47

[SVN r72032]
This commit is contained in:
Christophe Henry
2011-05-18 21:05:53 +00:00
parent 5e48186cd6
commit e14586b825
44 changed files with 1125 additions and 326 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();
}
}